← Next Greater Element (Circular)
Discussions
Sign in to join the discussion.
M
mchatterjee
OFFICIAL
3 months, 3 weeks 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
2 months 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
3 months, 3 weeks 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
5 months, 3 weeks 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