Skip to content

Commit 2ffcef5

Browse files
authored
Updated test cases
1 parent dba8eec commit 2ffcef5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

data_structures/stacks/balanced_parentheses.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ def balanced_parentheses(parentheses: str) -> bool:
99
True
1010
>>> balanced_parentheses("[(])")
1111
False
12-
>>> balanced_parentheses("1+2*3-4")
12+
>>> balanced_parentheses("{}")
1313
True
14+
>>> balanced_parentheses("))((")
15+
False
16+
>>> balanced_parentheses("((")
17+
False
1418
>>> balanced_parentheses("")
1519
True
1620
"""

0 commit comments

Comments
 (0)