1.

Which of the following sorting algorithm is in-place?(a) intro sort(b) merge sort(c) counting sort(d) radix sortThe question was posed to me in an interview for internship.The question is from Sorting in portion Sorting of Data Structures & Algorithms II

Answer» CORRECT option is (a) intro sort

For explanation: INTROSORT may use quick sort or heap sort or insertion sort internally in order to sort the GIVEN INPUT. All of the three algorithms are in PLACE, thus making introsort to be an in-place sorting algorithm.


Discussion

No Comment Found

Related InterviewSolutions