Skip to content

Commit 38a298a

Browse files
authored
Update Solution.java
1 parent 233fddf commit 38a298a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solution/0227.Basic Calculator II/Solution.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public int calculate(String s) {
2525
}
2626
}
2727
}
28-
while (!op.isEmpty()) {
28+
if (!op.isEmpty()) {
2929
calc(op, num);
3030
}
3131
return num.peek();

0 commit comments

Comments
 (0)