Wikipedia knowledge on Reverse Polish Notation
- addition, subtraction, multiplication, and division.
evalReversePolishNotation("2 5 3 + *");
// 16
evalReversePolishNotation("1 1 1 + +");
// 3
Wikipedia knowledge on Reverse Polish Notation
evalReversePolishNotation("2 5 3 + *");
// 16
evalReversePolishNotation("1 1 1 + +");
// 3