NEXTGREATER : Unsolved
About the NEXTGREATER : Unsolved category
Approach ! (Hint: Use stack)
JAva stack solution
How to shape Thought process?
Next Greater Element in O(N) using stack
I solved this in O(n^2) time.......... Is there Any better Solution?
Yes you could solve in O(n) time
I solved it in O(n^2) time and all tests passed!
next page →