Bloomberg interview question

Show how to implement a queue using two stacks

Interview Answer

Anonymous

12 May 2010

Push to one stack then pop and push to the second stack