Tripadvisor interview question

Implement a stack using queues

Interview Answer

Anonymous

Mar 4, 2019

Use 2 queues to emulate the FIFO behavior of the stack.