Pregunta de entrevista de Thumbtack

Parse and evaluate reverse polish notation.

Respuesta de la entrevista

Anónimo

26 de may de 2016

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