1.

In quick sort, for sorting n elements, the (n/4)th smallest element is selected as pivot using an O(n) time algorithm. What is the worst case time complexity of the quick sort?<pre>(A)(n)(B)(nLogn)(C)(n^2)(D)(n^2 log n) </pre>(A) A(B) B(C) C(D) D

Answer»


Discussion

No Comment Found

Related InterviewSolutions