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

Q

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

✍: Guest

A

Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule

2013-04-12, 1862👍, 0💬