You are viewing a single comment's thread. Return to all comments →
Beautiful code. You can remove s.pop() and use it instead of s.top() as you pop the last char anyway.
Seems like cookies are disabled on this browser, please enable them to open this website
Stacks: Balanced Brackets
You are viewing a single comment's thread. Return to all comments →
Beautiful code. You can remove s.pop() and use it instead of s.top() as you pop the last char anyway.