Discuss how you would select an algorithm to sort a list of
Solution
Answer
maxValue is larger than n, and possibly much larger
 I don\'t care if the output list is sorted or not
 all integers must be chosen with equal probabilit
 most evaluations report that the fastest sorts on average are quicksort, or radixsort (aka bucket sort).
But in the worst case, quicksort is very bad. Timsort, mentioned below, does decent damage control, but I\'d be surprised if it is fastest in the worst case.Though the worst case complexity is O(n^2), on an average it gives us O(nlogn) time complexity.
Radixsort may win in the worst case, but if you want a comparison-based sort, my money would actually be on mergesort.
Assume we are sorting a list or array of N elements
 Once sorted, smaller items are on the left (first item) and larger items are on the right (last item).
   

