Pergunta de entrevista da empresa Jet

parse a char array of prefix notation [2,3,6,*,+] = (3*6)+2 only need to support +-*/ . don't validate assume correct order of operations

Resposta da entrevista

Sigiloso

18 de jul. de 2016

Use one stack to store the numbers. When an operator is identified, pop the stack twice and perform the operation on the 2 numbers and push the result back on the stack. Continue until character are finished

1