So here is the question:
Suppose you have 100 thousand integers which ranges from 1 to 1 million. Please sort out the integers. The time complexity should
Use count sort. Just count all of them ( O(n) ), and then create fill the result array ( O(n), again).