Algorithms

Stack

A linear structure where the last element in is the first out, like a stack of plates.

Example

You put down plates A, B and C. When taking them off, C comes first, then B and finally A.

Test yourself: Stack

Stacks

In a stack, the last 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.