Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 385 Bytes

File metadata and controls

11 lines (7 loc) · 385 Bytes

Evaluate the value of an arithmetic expression in Reverse Polish Notation.

Valid operators are +, -, *, /. Each operand may be an integer or another expression.

Some examples:

["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9
  ["4", "13", "5", "/", "+"] -> (4 + (13 / 5)) -> 6

Show Tags Stack