I have n
integers in the interval [0,n^c]
where c
is some positive integer.
Which algorithm can I use to sort those integers in linear time?
I did look at RadixSort by my problem is the following: Given the interval the longest digit has at most cnlogn digits, so wouldnt RadixSort run in O(nlogn) time ?