You are viewing a single comment's thread. Return to all comments →
Nice Solution! No need of !stack.isEmpty() in second if statement.
Seems like cookies are disabled on this browser, please enable them to open this website
Balanced Brackets
You are viewing a single comment's thread. Return to all comments →
Nice Solution! No need of !stack.isEmpty() in second if statement.