1.

In which of the following case strand sort is most efficient?(a) when input array is already sorted(b) when input array is reverse sorted(c) when input array is large(d) when input array is has randomly spread elementsThe question was posed to me during an internship interview.The doubt is from Sorting topic in division Sorting of Data Structures & Algorithms II

Answer» RIGHT option is (a) when input array is ALREADY sorted

For EXPLANATION: The best CASE of strand sort occurs when the input array is already sorted. In this case, it has linear TIME complexity.


Discussion

No Comment Found

Related InterviewSolutions