INTERMEDIATE · 3 PRACTICE PROBLEMS
Stacks
Build intuition, one layer at a time.

THE CORE IDEA
Monotonic stack
Keep elements in order to find the next greater or smaller value in one pass.
O(n)A good place to practice
Start simple, then build up to the next challenge.
| Solved | Problem | Difficulty | Topic | Acceptance | Bookmark |
|---|---|---|---|---|---|
| Valid Parentheses | Easy | Stacks | 42.3% | ||
| Daily Temperatures | Medium | Stacks | 67.9% | ||
| Min Stack | Medium | Stacks | 56.4% |