← Next Greater Element (Circular)
Discussions
Sign in to join the discussion.
M
mchatterjee
OFFICIAL
2 months, 1 week ago
Why does my solution TLE on the last test case?
A monotonic stack is the trick: pop while the current element breaks the order, and the popped elements have just found their answer.
💬 3 replies
D
deepikakap7
3 weeks ago
Asked in my Zomato OA last week.
A monotonic stack is the trick: pop while the current element breaks the order, and the popped elements have just found their answer.
💬 0 replies
M
mihir_97
2 months, 1 week ago
Asked in my CRED OA last week.
A monotonic stack is the trick: pop while the current element breaks the order, and the popped elements have just found their answer.
💬 2 replies
P
poojamenon
4 months, 1 week ago
Asked in my Freshworks OA last week.
A monotonic stack is the trick: pop while the current element breaks the order, and the popped elements have just found their answer.
💬 2 replies