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.
- Bit Manipulation211
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Nth Node at Level L in a 0/1 Tree
Algorithms & Data Structures · Never build the tree — halve recursively, or read the answer off the parity of popcount(n − 1).
Algorithms & Data Structures · Binary long multiplication: add the doubled multiple for every set bit — and double with +=, not a 32-bit shift.
Algorithms & Data Structures · Topological order with a 26-bit mask per node: inherited = AND of the parents, final = (inherited OR allow) AND NOT disallow.
Algorithms & Data Structures · Allows flow down from every ancestor and a disallow stays local: OR the parents' allow sets in topological order, then subtract the node's own disallow.
Algorithms & Data Structures · Both allows and denies flow down the DAG as letter sets; a node's letters are its inherited allows minus its inherited denies.
Heaviest Set of Non-Adjacent Nodes
Algorithms & Data Structures · House Robber on an arbitrary small graph: with at most 20 nodes, a dynamic programme over subsets decides, for the lowest remaining node, take it and drop its neighbours or skip it.
Asked on LeetCode
205 questions tagged Bit Manipulation · all time
- Find the Duplicate NumbermediumArrayTwo PointersBinary SearchBit Manipulation+212 companies
- Optimal Account BalancinghardArrayDynamic ProgrammingBacktrackingBit Manipulation+111 companies
- Number of 1 BitseasyDivide and ConquerBit Manipulation11 companies
- Reverse BitseasyDivide and ConquerBit Manipulation11 companies
- Missing NumbereasyArrayHash TableMathBinary Search+210 companies
- Power of TwoeasyMathBit ManipulationRecursion9 companies
- SubsetsmediumArrayBacktrackingBit Manipulation9 companies
- Single NumbereasyArrayBit Manipulation9 companies
- Counting BitseasyDynamic ProgrammingBit Manipulation9 companies
- Minimum Operations to Reduce an Integer to 0mediumDynamic ProgrammingGreedyBit Manipulation7 companies
- Partition Array Into Two Arrays to Minimize Sum DifferencehardArrayTwo PointersBinary SearchDynamic Programming+57 companies
- Repeated DNA SequencesmediumHash TableStringBit ManipulationSliding Window+47 companies
- Partition to K Equal Sum SubsetsmediumArrayDynamic ProgrammingBacktrackingBit Manipulation+27 companies
- Unique Paths IIIhardArrayBacktrackingBit ManipulationMatrix+17 companies
- K-th Symbol in GrammarmediumMathBit ManipulationRecursion7 companies
- Shortest Path to Get All KeyshardArrayBit ManipulationBreadth-First SearchMatrix6 companies
- Number of Steps to Reduce a Number to ZeroeasyMathBit Manipulation6 companies
- Binary GapeasyBit Manipulation6 companies
- Power of FoureasyMathBit ManipulationRecursion6 companies
- Matchsticks to SquaremediumArrayDynamic ProgrammingBacktrackingBit Manipulation+16 companies
- Add BinaryeasyMathStringBit ManipulationSimulation6 companies
- Minimum Operations to Make Binary Array Elements Equal to One ImediumArrayBit ManipulationQueueSliding Window+16 companies
- Palindrome PermutationeasyHash TableStringBit Manipulation6 companies
- Count Number of Maximum Bitwise-OR SubsetsmediumArrayBacktrackingBit ManipulationEnumeration6 companies
- Count Complete Tree NodesmediumBinary SearchBit ManipulationTreeBinary Tree6 companies
- Sum of Two IntegersmediumMathBit Manipulation6 companies
- Letter Case PermutationmediumStringBacktrackingBit Manipulation6 companies
- Find the Longest Substring Containing Vowels in Even CountsmediumHash TableStringBit ManipulationPrefix Sum6 companies
- Minimum Cost Walk in Weighted GraphhardArrayBit ManipulationUnion-FindGraph Theory5 companies
- Check If a String Contains All Binary Codes of Size KmediumHash TableStringBit ManipulationRolling Hash+25 companies
- Beautiful ArrangementmediumArrayDynamic ProgrammingBacktrackingBit Manipulation+15 companies
- Can I WinmediumMathDynamic ProgrammingBit ManipulationMemoization+25 companies
- Find Minimum Time to Finish All JobshardArrayDynamic ProgrammingBacktrackingBit Manipulation+15 companies
- Sum of All Subset XOR TotalseasyArrayMathBacktrackingBit Manipulation+25 companies
- Subsets IImediumArrayBacktrackingBit Manipulation5 companies
- Divide Two IntegersmediumMathBit Manipulation5 companies
- Find the DifferenceeasyHash TableStringBit ManipulationSorting5 companies
- Set MismatcheasyArrayHash TableBit ManipulationSorting5 companies
- Single Number IImediumArrayBit Manipulation5 companies
- Maximum XOR of Two Numbers in an ArraymediumArrayHash TableBit ManipulationTrie5 companies
- Divide Array Into Equal PairseasyArrayHash TableBit ManipulationCounting5 companies
- Flipping an ImageeasyArrayTwo PointersBit ManipulationMatrix+15 companies
- Unique Length-3 Palindromic SubsequencesmediumHash TableStringBit ManipulationPrefix Sum5 companies
- Bitwise ORs of SubarraysmediumArrayDynamic ProgrammingBit Manipulation5 companies
- Find the Prefix Common Array of Two ArraysmediumArrayHash TableBit Manipulation5 companies
- Binary WatcheasyBacktrackingBit Manipulation5 companies
- Smallest Subarrays With Maximum Bitwise ORmediumArrayBinary SearchBit ManipulationSliding Window5 companies
- Convert a Number to HexadecimaleasyMathStringBit Manipulation5 companies
- Longest Nice SubarraymediumArrayBit ManipulationSliding Window5 companies
- Find the K-th Character in String Game IeasyMathBit ManipulationRecursionSimulation5 companies
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.