1.

Which of the following sorting algorithm is not in place?(a) insertion sort(b) quick sort(c) tree sort(d) gnome sortI got this question in an online quiz.I want to ask this question from Sorting topic in portion Sorting of Data Structures & Algorithms II

Answer»

The correct choice is (c) TREE sort

The BEST I can explain: Out of the given options tree sort is the only ALGORITHM which is not in place. It is because the auxiliary SPACE required by tree sort is O(n).



Discussion

No Comment Found

Related InterviewSolutions