Algorithms

Hilbert curve

A way to walk a map in 1 single line so nearby cells stay close in the list.

Example

With the Hilbert curve, 4 neighboring cells end up at consecutive positions, like 12, 13, 14 and 15.

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.