There was an error while loading. Please reload this page.
1 parent 2ffcef5 commit 68be0dcCopy full SHA for 68be0dc
1 file changed
data_structures/stacks/balanced_parentheses.py
@@ -9,6 +9,8 @@ def balanced_parentheses(parentheses: str) -> bool:
9
True
10
>>> balanced_parentheses("[(])")
11
False
12
+ >>> balanced_parentheses("1+2*3-4")
13
+ True
14
>>> balanced_parentheses("{}")
15
16
>>> balanced_parentheses("))((")
0 commit comments