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.
- Stack170
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Implement Single-Tab Browser History Navigation
Algorithms & Data Structures · A cursor over one visit stack: truncate forward history, clamp at both ends.
Algorithms & Data Structures · An undo log per open transaction: rollback replays it, commit hands it to the parent.
Algorithms & Data Structures · Flatten behind hasNext/next with O(depth) memory — and survive [[], [[]], [[], [3]]].
Algorithms & Data Structures · One pass with a stack of signed terms; the trap is integer division truncating toward zero.
Algorithms & Data Structures · A second stack holds the minimum at each depth, so getMin is just its top.
Algorithms & Data Structures · A three-line grammar turns nested braces into a tiny recursive-descent parser.
Pre-Order Traversal Skipping Marked Nodes
Algorithms & Data Structures · A pre-order walk with a stack; a marked node is dropped before its children are pushed, so its whole subtree disappears.
All Valid Expansions of Wildcard Parentheses
Algorithms & Data Structures · The follow-up to the wildcard validity check: enumerate every distinct balanced string the stars can produce, pruning on the running balance.
Asked on LeetCode
162 questions tagged Stack · all time
- Trapping Rain WaterhardArrayTwo PointersDynamic ProgrammingStack+128 companies
- Valid ParentheseseasyStringStackBracket Sequences28 companies
- Basic Calculator IImediumMathStringStack19 companies
- Asteroid CollisionmediumArrayStackSimulation17 companies
- Basic CalculatorhardMathStringStackRecursion17 companies
- Decode StringmediumStringStackRecursion17 companies
- Min StackmediumStackDesign17 companies
- Largest Rectangle in HistogramhardArrayStackMonotonic StackRange Minimum/Maximum Query17 companies
- Flatten Nested List IteratormediumStackTreeDepth-First SearchDesign+213 companies
- Simplify PathmediumStringStack13 companies
- Design Browser HistorymediumArrayLinked ListStackDesign+212 companies
- Evaluate Reverse Polish NotationmediumArrayMathStack12 companies
- Valid Parenthesis StringmediumStringDynamic ProgrammingStackGreedy+112 companies
- Daily TemperaturesmediumArrayStackMonotonic Stack11 companies
- Longest Valid ParentheseshardStringDynamic ProgrammingStackBracket Sequences11 companies
- Number of Visible People in a QueuehardArrayStackMonotonic Stack11 companies
- Reorder ListmediumLinked ListTwo PointersStackRecursion11 companies
- Remove All Adjacent Duplicates in String IImediumStringStack10 companies
- Remove K DigitsmediumStringStackGreedyMonotonic Stack10 companies
- Palindrome Linked ListeasyLinked ListTwo PointersStackRecursion10 companies
- Remove All Adjacent Duplicates In StringeasyStringStack9 companies
- Exclusive Time of FunctionsmediumArrayStack9 companies
- Basic Calculator IIIhardMathStringStackRecursion9 companies
- Next Greater Element IeasyArrayHash TableStackMonotonic Stack9 companies
- Next Greater Element IImediumArrayStackMonotonic Stack9 companies
- Minimum Remove to Make Valid ParenthesesmediumStringStack8 companies
- Design a Text EditorhardLinked ListStringStackDesign+28 companies
- Remove Duplicate LettersmediumStringStackGreedyMonotonic Stack8 companies
- Backspace String CompareeasyTwo PointersStringStackSimulation8 companies
- Car FleetmediumArrayStackSortingMonotonic Stack8 companies
- Implement Queue using StackseasyStackDesignQueue8 companies
- Maximum Frequency StackhardHash TableStackDesignOrdered Set8 companies
- Implement Stack using QueueseasyStackDesignQueue8 companies
- Maximal RectanglehardArrayDynamic ProgrammingStackMatrix+18 companies
- Add Two Numbers IImediumLinked ListMathStack8 companies
- Max StackhardLinked ListStackDesignDoubly-Linked List+17 companies
- Using a Robot to Print the Lexicographically Smallest StringmediumHash TableStringStackGreedy7 companies
- Remove All Occurrences of a SubstringmediumStringStackSimulation7 companies
- Shortest Unsorted Continuous SubarraymediumArrayTwo PointersStackGreedy+27 companies
- Binary Search Tree IteratormediumStackTreeDesignBinary Search Tree+27 companies
- 132 PatternmediumArrayBinary SearchStackMonotonic Stack+17 companies
- Sum of Subarray MinimumsmediumArrayDynamic ProgrammingStackMonotonic Stack7 companies
- Binary Tree Inorder TraversaleasyStackTreeDepth-First SearchBinary Tree7 companies
- Shortest Subarray to be Removed to Make Array SortedmediumArrayTwo PointersBinary SearchStack+17 companies
- Sum of Subarray RangesmediumArrayStackMonotonic Stack7 companies
- Brace ExpansionmediumStringBacktrackingStackBreadth-First Search+16 companies
- Smallest Subsequence of Distinct CharactersmediumStringStackGreedyMonotonic Stack6 companies
- Final Prices With a Special Discount in a ShopeasyArrayStackMonotonic Stack6 companies
- Online Stock SpanmediumStackDesignMonotonic StackData Stream6 companies
- Maximum Width RampmediumArrayTwo PointersStackMonotonic Stack6 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.