We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 233fddf commit 38a298aCopy full SHA for 38a298a
solution/0227.Basic Calculator II/Solution.java
@@ -25,7 +25,7 @@ public int calculate(String s) {
25
}
26
27
28
- while (!op.isEmpty()) {
+ if (!op.isEmpty()) {
29
calc(op, num);
30
31
return num.peek();
0 commit comments