InterviewSolution
Saved Bookmarks
| 1. |
What is the space complexity of stooge sort?(a) O(n)(b) O(1)(c) O(log n)(d) O(n log n)The question was posed to me in an internship interview.My question is from Sorting topic in chapter Sorting of Data Structures & Algorithms II |
|
Answer» CORRECT option is (a) O(N) The best I can EXPLAIN: The space COMPLEXITY of the stooge SORT is O(n). It is used to store the input array. |
|