Pregunta de entrevista de Oracle

Define a function to sort an unordered stack

Respuesta de la entrevista

Anónimo

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