From 0f1b548b9fec6fe15e91b210a53a2a2bfeb1649b Mon Sep 17 00:00:00 2001 From: Kannika KR <165569310+Kannikakr@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:32:45 +0530 Subject: [PATCH] Update 07_Redundant_Brackets.cpp --- Lecture-055/07_Redundant_Brackets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lecture-055/07_Redundant_Brackets.cpp b/Lecture-055/07_Redundant_Brackets.cpp index d909b8d..23a96be 100644 --- a/Lecture-055/07_Redundant_Brackets.cpp +++ b/Lecture-055/07_Redundant_Brackets.cpp @@ -8,7 +8,7 @@ bool redundantBracket(string str) { bool redundancy = true; char ch = str[i]; - if(ch=='(' || ch=='+' || ch=='-' || ch=='-' || ch=='/') { + if(ch=='(' || ch=='+' || ch=='-' || ch=='*' || ch=='/') { st.push(ch); } else { @@ -49,4 +49,4 @@ int main() { } return 0; -} \ No newline at end of file +}