From 2ffcef5220648fe69378ce94874405eb5559c4e8 Mon Sep 17 00:00:00 2001 From: 1227haran <68032825+1227haran@users.noreply.github.com> Date: Tue, 8 Oct 2024 00:36:50 +0530 Subject: [PATCH] Updated test cases --- data_structures/stacks/balanced_parentheses.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 """