Queues
Lesson 10 of 20 · Algo.Micro
First in, first out: tasks, messages and fair waiting.
A queue serves in arrival order: enqueue adds at the back, dequeue removes from the front. First in, first out (FIFO).
enqueue at the back, dequeue at the front
Check yourself
Enqueue A, B, C, then dequeue once. What comes out?
Do it in the browser: a real algorithms tool, a short mission and instant feedback. No install.
Start this lesson — free