Algorithms

Bucket sort

A sorting algorithm that splits the data into buckets by range, sorts each bucket and joins them in order.

Example

Prices from 0 to 999 into 10 buckets of 100: 0 to 99, 100 to 199... Each bucket is sorted separately.

Test yourself: Bucket sort

Bucket sort

With 10 buckets for numbers between 0 and 1, 0.37 goes into the bucket from 0.3 to ___.

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.