Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, and /. Each operand may be an integer or another expression. Note that division between two integers should truncate toward zero.
Evaluate Reverse Polish Notation

Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, and /. Each operand may be an integer or another expression. Note that division between two integers should truncate toward zero.

Example 1:
Input: {"tokens":["2","1","+","3","*"]}
Output: 9
Input
arr ={"tokens":["2","1","+","3","*"]}

Start

Input

2

1

+

3

*

Stack (Indices)
Variables
No variables to display
DepthFunction Call
Stack empty
0/11