J.P. Morgan interview question

What's the difference between a stack and a queue?

Interview Answer

Anonymous

Jan 28, 2016

the removal in which a stack is removed from last in is first out (LIFO) and a queue is removed from first in is first out( FIFO).