1.

Which of the following is an alternate name of library sort?(a) gapped insertion sort(b) binary insertion sort(c) recursive insertion sort(d) binary gap sortI got this question in an interview for job.This interesting question is from Sorting topic in division Sorting of Data Structures & Algorithms II

Answer»

The correct ANSWER is (a) gapped insertion sort

The best explanation: Library sort is also KNOWN as gapped insertion sort because it uses insertion sort with GAPS in between SUCCESSIVE ELEMENTS. These gaps allow for fast insertion.



Discussion

No Comment Found

Related InterviewSolutions