1.

What is the auxiliary space complexity of strand sort?(a) O(n)(b) O(1)(c) O(log n)(d) O(n log n)I got this question during an internship interview.I want to ask this question from Sorting in division Sorting of Data Structures & Algorithms II

Answer»

The CORRECT option is (a) O(n)

EXPLANATION: The AUXILIARY space complexity of STRAND sort is O(n). It is because a sub-list of size n has to be maintained.



Discussion

No Comment Found

Related InterviewSolutions