Pergunta de entrevista da empresa Bloomberg

Try to use two stacks to function like a queue

Resposta da entrevista

Sigiloso

15 de out. de 2013

Put all elements in one stack. Then pop out the elements in push to another stack. when u pop out from the second stack, it will be FIFO with respect to original order of elements.

1