1.

What is the average time complexity of strand sort?(a) O(n)(b) O(n log n)(c) O(n^2)(d) O(n^2 log n)I got this question in an internship interview.This key question is from Sorting topic in division Sorting of Data Structures & Algorithms II

Answer»

Correct CHOICE is (c) O(n^2)

The explanation is: Average case time complexity of strand SORT is O(N2). So it is not as EFFICIENT as quick sort or merge sort.



Discussion

No Comment Found

Related InterviewSolutions