You are viewing a single comment's thread. Return to all comments →
Imagine that the first expression is simply '}'. What is the state of your stack the first time you try to top() or pop() a value from it?
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 →
Imagine that the first expression is simply '}'. What is the state of your stack the first time you try to top() or pop() a value from it?