I am trying to think about an algorithm which sorts array of n integers in range in time complexity , where is a positive integer.
I can't use Counting sort, since the time complexity will be .
How can I use the information about the range of the numbers, and sort the array, when iterating over the range is impossible?
2.1m questions
2.1m answers
60 comments
57.0k users