What is the fastest way to sort 1 million integers when integers are from the range [1,100]?

Viewed 30640

Notes: I've thought about Radix sort, bucket sort, counting sort.

Is there anyway to achieve big O(n)?

8 Answers
Related