Updated test cases

This commit is contained in:
1227haran 2024-10-08 00:36:50 +05:30 committed by GitHub
parent dba8eecb47
commit 2ffcef5220
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,8 +9,12 @@ def balanced_parentheses(parentheses: str) -> bool:
True
>>> balanced_parentheses("[(])")
False
>>> balanced_parentheses("1+2*3-4")
>>> balanced_parentheses("{}")
True
>>> balanced_parentheses("))((")
False
>>> balanced_parentheses("((")
False
>>> balanced_parentheses("")
True
"""