InterviewSolution
Saved Bookmarks
| 1. |
What is the auxiliary space complexity of library sort?(a) O(n)(b) O(1)(c) O(n log n)(d) O(n^2)I got this question in an online quiz.Enquiry is from Sorting in chapter Sorting of Data Structures & Algorithms II |
|
Answer» CORRECT option is (a) O(N) Easy explanation - The auxiliary space required by library SORT is O(n). This space is taken up by the GAPS PRESENT in between successive elements. |
|