~/problems
Problems
Basics first, then the classics, then company-style assessments. Every problem has tests you run right here; multi-level ones unlock as you go. See the roadmap.
Interview roadmap
Stacks
Matching brackets, paths, next greater element.
27 problems
Interview roadmap
Stacks Matching brackets, paths, next greater element.
Stacks guide
- Play first: The Seal 1-minute game Stack (bracket matching)
- An undo log with a stack basics py · c++ · java easy
- Valid Parentheses code the boss py · c++ · java easy
- Implement Queue Using Stacks py · c++ · java easy
- Min Stack py · c++ · java medium
- Evaluate Reverse Polish Notation py · c++ · java medium
- Asteroid Collision py · c++ · java medium
- Decode String py · c++ · java medium
- Maximum Frequency Stack py · c++ · java hard
More practice: 2 problems
- Basic Calculator II py · c++ · java medium
- Basic Calculator GoogleMeta py · c++ · java hard
Monotonic stack guide
- Play first: The Tower Brawl 1-minute game Next greater element (monotonic stack)
- Nearest smaller value to the left basics py · c++ · java easy
- Messages between signal towers py · c++ · java easy
- Next Greater Element I code the boss py · c++ · java easy
- Daily Temperatures ▶ boss game py · c++ · java medium
- Online Stock Span py · c++ · java medium
- Car Fleet py · c++ · java medium
- Trapping Rain Water ▶ boss game py · c++ · java hard
- Largest Rectangle in Histogram py · c++ · java hard
More practice: 1 problem
- Shortest Subarray with Sum at Least K GoogleApple py · c++ · java hard
Stack: path parsing guide
- Play first: The Mole King 1-minute game Stack (simplify a path)
- Current folder after each move basics py · c++ · java easy
- Where each piece of text lives py · c++ · java easy
- Simplify Path code the boss py · c++ · java medium
- CPU usage analysis Uber py · c++ · java medium
- Longest valid ranked-bracket substring Uber py · c++ · java hard
- Fewest deletions to balance parentheses assessment 2 levels DoorDash py · c++ · java easy
- Stack trace reconstruction assessment 3 levels Anthropic py · c++ · java medium
- Cd with ~ and symlinks assessment 3 levels OpenAI py · c++ · java hard