1.

What is the average running time of a quick sort algorithm?(a) O(N^2)(b) O(N)(c) O(N log N)(d) O(log N)I had been asked this question during an interview.The above asked question is from Quicksort in division Sorting of Data Structures & Algorithms II

Answer»

Correct answer is (c) O(N log N)

For explanation: The BEST case and AVERAGE case analysis of a QUICK sort algorithm are mathematically found to be O(N log N).



Discussion

No Comment Found

Related InterviewSolutions