Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lecture-055/07_Redundant_Brackets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -49,4 +49,4 @@ int main() {
}

return 0;
}
}