1.

Which of the following is an advantage of recursive insertion sort over its iterative version?(a) it has better time complexity(b) it has better space complexity(c) it is easy to implement(d) it has no significant advantageThis question was posed to me in examination.This interesting question is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

The correct answer is (d) it has no significant advantage

The best I can EXPLAIN: Recursive INSERTION sort has no significant advantage over ITERATIVE insertion sort. It is just a different WAY to IMPLEMENT the same.



Discussion

No Comment Found

Related InterviewSolutions