You are viewing a single comment's thread. Return to all comments →
Try taking out the condition before the return statement. You've already checked for equality as a condition of breaking the while loop.
Not sure why it's failing, but it didn't work for me either when I added it to my solution.
Seems like cookies are disabled on this browser, please enable them to open this website
Equal Stacks
You are viewing a single comment's thread. Return to all comments →
Try taking out the condition before the return statement. You've already checked for equality as a condition of breaking the while loop.
Not sure why it's failing, but it didn't work for me either when I added it to my solution.