employer cover photo
employer logo
employer logo

National Security Agency

Engaged employer

National Security Agency interview question

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

Interview Answer

Anonymous

25 May 2020

Stacks "pop" data off the stack, using last-in, first out (LIFO) (think of a stack of books), and queues use first-in, first-out (FIFO) (think of a pipe)