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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When we are looking for larger number than what stack we need to use ?

A

Monotonically decreasing stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly