Stacks & Queues
LIFO/FIFO structures and monotonic patterns.
Foundation
Learn the invariant, apply it independently, then pass the Stacks & queues checkpoint.
- Validate parentheses (Easy)
Checkpoint
A graded check of the core Stacks & queues reasoning skills.
Pattern Quest
Practice recognizing stacks & queues problem shapes.
Stacks & queues
Practice LIFO and FIFO invariants for nested syntax, monotonic candidates, breadth-first work, and deferred operations that must be resolved in order.
- Basic Calculator (Hard)
- Buildings With an Ocean View (Easy)
- Calculate infix (Medium)
- Calculate postfix (Medium)
- Decode String (Medium)
- Find max in sliding window (Hard)
- Find moving average in sliding window (Easy)
- Implement queue with max (Medium)
- Implement stack with min (Medium)
- Infix to postfix (Medium)
- Prefix to postfix (Medium)
- Simplify Path (Medium)
- Trapping Rain Water (Hard)