← All problems

Evaluate Reverse Polish Notation

Medium stacks LeetCode ↗
Evaluate an arithmetic expression in Reverse Polish Notation.

Hints (0/3 revealed)

Log in to reveal hints progressively.

Complexity

Time O(n), Space O(n)

Common pitfalls

  • Operand order swapped
  • Using float division

Your solution

Log in to save your code and track progress.