diff --git a/data_structures/stacks/balanced_parentheses.py b/data_structures/stacks/balanced_parentheses.py index 928815bb2..a4f532641 100644 --- a/data_structures/stacks/balanced_parentheses.py +++ b/data_structures/stacks/balanced_parentheses.py @@ -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 """