Problem 164 · Hard

Maximum Gap

Bucket sort by range/n buckets; the maximum gap must span at least two buckets.

Open the interactive visualisation