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 +}