Stacks Flashcards
1
Q
In an array to find element that is smaller than the current element which monotonic stack we are going to use?
A
https://www.youtube.com/watch?v=TunTV2-griM
Monotonically increasing stack
2
Q
In an array to find element that is greater than the current element which monotonic stack we are going to use?
A
https://www.youtube.com/watch?v=TunTV2-griM
Monotonically decreasing stack
3
Q
When we are looking for larger number than what stack we need to use ?
A
Monotonically decreasing stack