Problems
/
Monotonic Stack
Monotonic Stack
Maintain a stack with increasing/decreasing order to find next greater/smaller elements in O(n).
0
easy
7
medium
3
hard
10
Total
9
Ready
All
Easy
Medium
Hard
Shortest Time
Longest Time
A-Z
Expand all
◆
Core Problems
5 medium
2 hard
7/7
1
Min Stack
medium
2
Stock Span Problem
medium
3
Next Greater Element
medium
4
Next Smaller Element
medium
5
Daily Temperatures
medium
6
Largest Rectangle in Histogram
hard
7
Trapping Rain Water
hard
◆
More to Master — Solve these to master this pattern
2 medium
1 hard
3/3
1
Maximal Rectangle
hard
2
Sum of Subarray Minimums
Soon
3
Build Array with Stack Operations
medium