Domanda di colloquio di Thumbtack

Parse and evaluate reverse polish notation.

Risposta di colloquio

Anonimo

26 mag 2016

Use a stack for the operands, pop two every time you encounter an operator, and push the result back on the operand stack.