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.
- Iterator12
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Algorithms & Data Structures · Flatten behind hasNext/next with O(depth) memory — and survive [[], [[]], [[], [3]]].
Algorithms & Data Structures · Chain iterables behind hasNext/next with a lookahead that skips the empty ones.
Algorithms & Data Structures · An infinite generator over two BigInts — ordinary numbers lose precision past the 78th term.
Asked on LeetCode
9 questions tagged Iterator · all time
- Flatten Nested List IteratormediumStackTreeDepth-First SearchDesign+213 companies
- Binary Search Tree IteratormediumStackTreeDesignBinary Search Tree+27 companies
- Flatten 2D VectormediumArrayTwo PointersDesignIterator3 companies
- Zigzag IteratormediumArrayDesignQueueIterator3 companies
- RLE IteratormediumArrayDesignCountingIterator2 companies
- Peeking IteratormediumArrayDesignIterator2 companies
- Binary Search Tree Iterator IImediumStackTreeDesignBinary Search Tree+21 company
- Design Compressed String IteratoreasyArrayStringDesignIterator1 company
- Iterator for CombinationmediumStringBacktrackingDesignIterator1 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.