Sorting hard time O(d · (n + b)) space O(n + b)
Radix Sort
Sort the numbers by their last digit, then the next digit, and so on. Each pass is a stable counting sort on one digit (base 10). After the most-significant digit, the whole array is sorted.
Radix sort: stably sort by each digit, least-significant first.
1 / 53
Practice
Machine twin: /dsa-viz-v2/radix-sort.json — the full deterministic run as structured data.