Interactive counting sort. Tally each value, prefix-sum the tallies into end positions, then place each value at its slot.

Counting sort · n=9, k=9 waiting reading active count placed
Step 0 / 0Count

Press Play. Three phases: count → prefix-sum → place each value at its slot.

Speed
operations
0
placed
0
phase
Count
progress
0%
count[v]++ for each value v
make running totals:
count[v] += count[v-1]
for each v from right to left:
pos = count[v] - 1
output[pos] = v; count[v]--
timeline0 / 0
space  walk steps