InterviewSolution
Saved Bookmarks
| 1. |
What is the average time complexity of Tim sort?(a) O(n)(b) O(n log n)(c) O(n^2)(d) O(log n)I have been asked this question by my college director while I was bunking the class.My enquiry is from Sorting topic in chapter Sorting of Data Structures & Algorithms II |
|
Answer» CORRECT answer is (b) O(n log n) EXPLANATION: Average time complexity of TIM SORT remains to be O(n log n). It is the same as the average case complexity of merge sort. |
|