What is the difference between Stack and Queue?

Q

What is the difference between Stack and Queue?

✍: Guest

A

Stack is a Last In First Out (LIFO) data structure.
Queue is a First In First Out (FIFO) data structure

2012-04-11, 2931👍, 0💬