InterviewSolution
Saved Bookmarks
| 1. |
What is the auxiliary space requirement of cycle sort?(a) O(n)(b) O(1)(c) O(log n)(d) O(n log n)This question was posed to me in examination.This intriguing question comes from Sorting in portion Sorting of Data Structures & Algorithms II |
|
Answer» RIGHT option is (b) O(1) Easy explanation - CYCLE SORT REQUIRES an auxiliary space of O(1). So this makes it an in-place sorting algorithm. |
|