01 · Question
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
02 · Analysis
The stack holds values of completed subexpressions. For an operator, pop b first, then a, and push a operator b. Subtraction and division depend on this order. Division truncates toward zero: -7 / 3 becomes -2. Python uses absolute integer division plus a sign correction to avoid float precision loss. The input is a valid expression, divisors are nonzero, and Go intermediates must fit int. O(n) time and O(n) space under constant-time arithmetic.