Pergunta de entrevista da empresa Thumbtack

Parse and evaluate reverse polish notation.

Resposta da entrevista

Sigiloso

26 de mai. 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.