1.

Which of the following sorting algorithm is in place?(a) cocktail sort(b) merge sort(c) counting sort(d) radix sortThe question was asked in exam.My enquiry is from Sorting in chapter Sorting of Data Structures & Algorithms II

Answer»

The correct option is (a) cocktail sort

The EXPLANATION is: Cocktail sort is an in PLACE SORTING technique as it only requires constant AUXILIARY space for manipulating the INPUT array. Rest all other options are not in place.



Discussion

No Comment Found

Related InterviewSolutions