1.

What is the worst case time complexity of cube sort?(a) O(n)(b) O(log n)(c) O(n log n)(d) O(n2)This question was addressed to me during an online exam.The doubt is from Sorting in chapter Sorting of Data Structures & Algorithms II

Answer»

The correct option is (c) O(n LOG n)

The best EXPLANATION: The WORST case performance of cube sort is O(n log n). This is the FASTEST possible complexity with a comparison based sort.



Discussion

No Comment Found

Related InterviewSolutions