Let array A be the following array (n=8, k=7).
Compute C[j] as the number of elements in A[] j. Array C is thus the following array.
Click mouse to advance to next frame.
Array B contains the final sorted array.