1.

Which of the following is not true about QuickSort?(a) in-place algorithm(b) pivot position can be changed(c) adaptive sorting algorithm(d) can be implemented as a stable sortThis question was addressed to me in an online interview.The query is from Quicksort in chapter Sorting of Data Structures & Algorithms II

Answer»

Right CHOICE is (B) pivot position can be changed

Easiest explanation - Once a pivot is CHOSEN, its position is FINALIZED in the sorted array, it cannot be MODIFIED.



Discussion

No Comment Found

Related InterviewSolutions