Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Given an expression in Reverse Polish Notation (postfix), evaluate the value of the expression. In Reverse Polish Notation, the operators follow their operands. For example, the expression 3 10 5 + *
is equivalent to 3 * (10 + 5)
.
The expression is given as an array either integers or operators. So, for the expression [3, 10, 5, '+', '*']
you should return 45
.
The result should be rounded to the nearest integer.
# | Size | % | Users |
---|---|---|---|
#1 | 66 c. | Top 10% | |
#2 | 69 c. | Top 20% | |
#3 | 75 c. | Top 30% | |
#4 | 77 c. | Top 40% | |
#5 | 79 c. | Top 50% | |
#6 | 89 c. | Top 60% | |
#7 | 124 c. | Top 70% | |
#8 | 139 c. | Top 80% | |
#9 | 169 c. | Top 90% | |
#10 | 207 c. | Top 100% |