mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 06:03:42 +00:00
Updated test cases
This commit is contained in:
parent
dba8eecb47
commit
2ffcef5220
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user