Question DSA-STK-0037
EasyWhich technique finds the next greater element for every item of an array in O(n)?
- A.
A monotonic stack
- B.
Two nested loops
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Stacks question
Which technique finds the next greater element for every item of an array in O(n)?
A monotonic stack
Two nested loops
Sign up free to see the answer and a step-by-step explanation.
A min-heap
Binary search