LeetCode MEDIUM 150 Evaluate Reverse Polish Notation Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Evaluate Reverse Polish Notation
- Topics:
Array,Math,Stack
Problem gist
Reverse Polish Notation writes an arithmetic expression so that every operator comes after the two values it uses. Instead of writing 2 + 3, it writes 2 3 +. This removes parentheses because the order is encoded directly in the token stream.