Problems
Callback's own problems and the LeetCode questions companies have been asking, in one place — pick a category, then filter by company, frequency, status, difficulty, topic, and language.
- Combinatorics44
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Algorithms & Data Structures · 1 − C(n − c, k) / C(n, k), computed as a running product so nothing overflows.
Asked on LeetCode
43 questions tagged Combinatorics · all time
- Unique PathsmediumMathDynamic ProgrammingCombinatorics13 companies
- Sum of All Subset XOR TotalseasyArrayMathBacktrackingBit Manipulation+25 companies
- Distribute Candies Among Children IImediumMathCombinatoricsEnumeration4 companies
- Find Triangular Sum of an ArraymediumArrayMathSimulationCombinatorics+14 companies
- Check If Digits Are Equal in String After Operations IeasyMathStringSimulationCombinatorics+14 companies
- Count the Number of Arrays with K Matching Adjacent ElementshardMathCombinatoricsFermat's Little Theorem4 companies
- Manhattan Distances of All Arrangements of PieceshardMathCombinatorics3 companies
- Count the Number of Infection SequenceshardArrayMathCombinatoricsFermat's Little Theorem3 companies
- Sorted GCD Pair QuerieshardArrayHash TableMathBinary Search+63 companies
- Count the Number of Ideal ArrayshardMathDynamic ProgrammingCombinatoricsNumber Theory+23 companies
- Count the Number of Computer Unlocking PermutationsmediumArrayMathBrainteaserCombinatorics3 companies
- The Number of Beautiful SubsetsmediumArrayHash TableMathDynamic Programming+33 companies
- Distribute Candies Among Children IeasyMathCombinatoricsEnumeration2 companies
- Distribute Candies Among Children IIIhardMathCombinatorics2 companies
- Count All Valid Pickup and Delivery OptionshardMathDynamic ProgrammingCombinatorics2 companies
- Count Number of Balanced PermutationshardMathStringDynamic ProgrammingCombinatorics2 companies
- Find the Count of Good IntegershardHash TableMathCombinatoricsEnumeration2 companies
- Smallest Palindromic Rearrangement IIhardHash TableMathStringCombinatorics+12 companies
- Maximum and Minimum Sums of at Most Size K SubsequencesmediumArrayMathDynamic ProgrammingSorting+12 companies
- Count Ways to Build Rooms in an Ant ColonyhardArrayMathDynamic ProgrammingTree+61 company
- Number of Ways to Reach Destination in the GridhardMathDynamic ProgrammingCombinatorics1 company
- Count the Number of Good SubsequencesmediumHash TableMathStringCombinatorics+11 company
- Find the Number of Possible Ways for an EventhardMathDynamic ProgrammingCombinatorics1 company
- Maximum Score with Co-Prime ElementhardArrayHash TableMathCombinatorics+21 company
- Find Number of Ways to Reach the K-th StairhardMathDynamic ProgrammingBit ManipulationMemoization+11 company
- Count Ways to Make Array With ProducthardArrayMathDynamic ProgrammingCombinatorics+31 company
- Count the Number of K-Free SubsetsmediumArrayMathDynamic ProgrammingSorting+11 company
- Number of Sets of K Non-Overlapping Line SegmentsmediumMathDynamic ProgrammingCombinatoricsPrefix Sum1 company
- Count K-Subsequences of a String With Maximum BeautyhardHash TableMathStringGreedy+31 company
- Find the Count of Monotonic Pairs IhardArrayMathDynamic ProgrammingCombinatorics+11 company
- Number of Ways to Reorder Array to Get Same BSThardArrayMathDivide and ConquerDynamic Programming+71 company
- Count the Number of Good PartitionshardArrayHash TableMathCombinatorics1 company
- Number of Ways to Rearrange Sticks With K Sticks VisiblehardMathDynamic ProgrammingCombinatorics1 company
- Find Nth Smallest Integer With K One BitshardMathBit ManipulationCombinatorics1 company
- Vowels of All SubstringsmediumMathStringDynamic ProgrammingCombinatorics1 company
- Ugly Number IIImediumMathBinary SearchCombinatoricsNumber Theory+41 company
- Number of Ways to Reach a Position After Exactly k StepsmediumMathDynamic ProgrammingCombinatorics1 company
- Check If Digits Are Equal in String After Operations IIhardMathStringCombinatoricsNumber Theory1 company
- Count AnagramshardHash TableMathStringCombinatorics+21 company
- Count Sorted Vowel StringsmediumMathDynamic ProgrammingCombinatorics1 company
- Find Sum of Array Product of Magical SequenceshardArrayMathDynamic ProgrammingBit Manipulation+21 company
- Kth Smallest InstructionshardArrayMathDynamic ProgrammingCombinatorics1 company
- Poor PigshardMathDynamic ProgrammingCombinatorics1 company
Listings only — titles, difficulty, and tags link out to LeetCode. Imported from the leetcode-company-wise-problems snapshot dated 1 June 2025. Frequency is that dataset's own relative score within a company and time range.