mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 14:13:44 +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
|
True
|
||||||
>>> balanced_parentheses("[(])")
|
>>> balanced_parentheses("[(])")
|
||||||
False
|
False
|
||||||
>>> balanced_parentheses("1+2*3-4")
|
>>> balanced_parentheses("{}")
|
||||||
True
|
True
|
||||||
|
>>> balanced_parentheses("))((")
|
||||||
|
False
|
||||||
|
>>> balanced_parentheses("((")
|
||||||
|
False
|
||||||
>>> balanced_parentheses("")
|
>>> balanced_parentheses("")
|
||||||
True
|
True
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user