Algorithms

Queue

A linear structure where the first element in is the first out, like a line at the bank.

Example

A, B and C join the line. A is served first, then B and finally C.

Test yourself: Queue

Queues

In a queue, the first element in is the ___ out.

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.