← Valid Parentheses
Discussions
Sign in to join the discussion.
S
svarma
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
C
chaitanya_57
3 weeks, 3 days ago
Asked in my BrowserStack 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.
💬 3 replies