We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae74fa5 commit 6fd365aCopy full SHA for 6fd365a
yoonexample/src/main/java/stack/InfixToPostfix.java
@@ -0,0 +1,18 @@
1
+package stack;
2
+
3
+public class InfixToPostfix {
4
5
+ public char[] convertInputToCharArray(String input) {
6
+ return null;
7
+ }
8
9
+ public char[] convertInfixToPostfix(char[] input) {
10
11
12
13
+ public int compareOperator(char op1, char op2) {
14
+ OperatorPriority op1Priority = OperatorPriority.getOperatorPriority(op1);
15
+ OperatorPriority op2Priority = OperatorPriority.getOperatorPriority(op2);
16
+ return op1Priority.getPriority() - op2Priority.getPriority();
17
18
+}
0 commit comments