Back to All Algorithms
Radix Sort
Category: Sorting | Time: O(d * (n+k)) | Space: O(n + k)
Visualization
Visual representation of the data structure
Enter an algorithm and input to start visualization.
About Radix Sort

A non-comparative sorting algorithm. It avoids comparison by creating and distributing elements into buckets according to their radix. For elements with more than one significant digit, this bucketing process is repeated for each digit, while preserving the ordering of the prior step, until all digits have been considered.

Code Editor
The code is for reference. Editing it won't affect the visualization.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Frequently Asked Questions
About Radix Sort