Chris invented a sort function, Best Sort that has a time complexity of ! Although this is very efficient, it can only work on a range of less than 200 numbers. If Chris were to sort 300 numbers, he has several options as below :
1. Sort range , followed by and so on. Perform this 2 times.
2. Sort range , followed by and so on. Perform this 3 times.
3. Sort the first 200 numbers, then sort the last 200 numbers.
4. Sort the first 200 numbers, then sort the last 200 numbers, then sort the first 200 numbers again.
5. Sort the first 200 numbers, then sort the last 200 numbers, then sort the first 200 numbers again, and finally the last 200 numbers again.
Which options actually sort the numbers? And among them which is uses the least number of Best Sort ?
Details and Assumptions
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!