Pergunta de entrevista da empresa Oracle

Define a function to sort an unordered stack

Resposta da entrevista

Sigiloso

10 de mar. de 2016

The answer is easy, you are allowed to use a second stack and a temp variable, so it is just a matter of popping, storing and comparing before pushing into the second