D
deepikakap7
27 Sep 2026, 15:22
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.
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.
Sign in to reply.