CodeMosa
Master LeetCode Patterns
All Patterns
Collections
Sign In
Back
Monotonic Stack
Question 1 of 12
8% Complete
Medium
What does a monotonic increasing stack help you find?
A
Next smaller element to the right for each element
B
Next greater element to the right for each element
C
Maximum element in the array
D
Sorted order of elements
Need a hint?
Think about what happens when you pop elements