Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Astro1123 committed Nov 18, 2021
1 parent 56066d4 commit 84f0b68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions calc/rpn/ToRPN.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ public ArrayList<String> toRPN(ArrayList<String> inlist,ArrayList<String> typeli
break;
}
}
if (mode == true) {
if (tp1 >= tp2) break;
} else {
if (tp1 > tp2) break;
}
if (tp1 > tp2) break;
if (stack.size()==0) break;
list.add(stack.pop());
}
Expand Down

0 comments on commit 84f0b68

Please sign in to comment.