Algorithms

Separate chaining

A way to handle collisions in a hash table: each bucket keeps a list of every pair that lands there.

Example

If 136 and 236 land in bucket 36, that bucket's list becomes 136 → 236 and neither is lost.

Test yourself: Separate chaining

Hash collisions

What does each bucket hold in a hash table with separate chaining?

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.