Back to DSA sheet
Evaluate Reverse Polish Notation
MediumStack & QueueEvaluate an arithmetic expression given in Reverse Polish (postfix) notation.
Constraints
- 1 <= tokens.length <= 10^4
- Operators are + - * /
Sheets
Blind 75NeetCode 150NeetCode 250
evaluate-reverse-polish-notation.cpp
Loading editor
Custom input (stdin)
Output
Run your code to see its output.