1.

Which of the following sorting algorithm is not in place?(a) quick sort(b) strand sort(c) cycle sort(d) heap sortI had been asked this question in homework.The origin of the question is Sorting topic in division Sorting of Data Structures & Algorithms II

Answer»

Right OPTION is (B) STRAND sort

To EXPLAIN: Strand sort has an auxiliary space complexity of O(n). So it is not an in place sorting algorithm.



Discussion

No Comment Found

Related InterviewSolutions