1.

What is the best case time complexity of tree sort?(a) O(n)(b) O(n log n)(c) O(n^2)(d) O(log n)I had been asked this question in an online quiz.My doubt is from Sorting topic in chapter Sorting of Data Structures & Algorithms II

Answer» RIGHT ANSWER is (B) O(n log n)

For EXPLANATION: The BEST case time complexity of tree sort is the same as its average case complexity. So best case time complexity is O(n log n).


Discussion

No Comment Found

Related InterviewSolutions