1.

What is the typical running time of a heap sort algorithm?(a) O(N)(b) O(N log N)(c) O(log N)(d) O(N^2)This question was posed to me during an interview.Question is taken from Heapsort topic in chapter Sorting of Data Structures & Algorithms II

Answer»

The CORRECT answer is (b) O(N log N)

The best explanation: The total running time of a heap sort ALGORITHM is MATHEMATICALLY FOUND to be O(N log N).



Discussion

No Comment Found

Related InterviewSolutions