Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Evaluate Reverse Polish Notation
Bookmark
Input
Example 1
Example 2
Example 3
Custom
tokens
=
[2, 1, +, 3, *]
tokens
2
0
1
1
+
2
3
3
*
4
stack
algo
master
.
io
Step:
Evaluate the expression left to right with a stack.
0 / 21
Input
Example 1
Example 2
Example 3
Custom
tokens
=
[2, 1, +, 3, *]
0 / 21
tokens
2
0
1
1
+
2
3
3
*
4
stack
algo
master
.
io
Step:
Evaluate the expression left to right with a stack.