Show how n integers in the range 1 to can be sorted in O(n) time.

Use a Radix-n sort.

Each digit requires n symbols, and digits are needed (d=2, k=n).