You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to write a function that passes all current tests in the Balanced Parentheses Check problem but that fails with an IndexError if a closing parentheses occurs when there is an empty stack.
Adding this test case handles the issue:
assert_equal(sol('][[[]])]'),False)
The text was updated successfully, but these errors were encountered:
It is possible to write a function that passes all current tests in the Balanced Parentheses Check problem but that fails with an IndexError if a closing parentheses occurs when there is an empty stack.
Adding this test case handles the issue:
The text was updated successfully, but these errors were encountered: