You are viewing a single comment's thread. Return to all comments →
I also have this problem, the last input cannot be taken by in.next() in the main method, so it does not call the isBalanced method later.
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 →
I also have this problem, the last input cannot be taken by in.next() in the main method, so it does not call the isBalanced method later.