1.

Quick sort uses which of the following method to implement sorting?(a) merging(b) partitioning(c) selection(d) exchangingI have been asked this question during an interview.Enquiry is from Sorting topic in section Sorting of Data Structures & Algorithms II

Answer» RIGHT answer is (b) PARTITIONING

Explanation: Quick sort MAKES partitions of the input array about the pivot in order to IMPLEMENT sorting. Thus its METHOD of sorting is called partitioning.


Discussion

No Comment Found

Related InterviewSolutions