Data Structures19 sections · 729 units
Open in CourseQuiz: Monotonic Stack
Pop condition
Check Your Understanding
In a monotonic decreasing stack for 'next greater element', when do you pop?
- A.When the current element is larger than the stack top
- B.When the current element is smaller than the stack top
- C.When the stack is full
- D.After processing each element