InterviewSolution
Saved Bookmarks
| 1. |
What is the space complexity of pigeonhole sort (k=range of input)?(a) O(n*k)(b) O(n)(c) O(k)(d) O(n+k)I had been asked this question in an internship interview.My enquiry is from Sorting in division Sorting of Data Structures & Algorithms II |
|
Answer» Right choice is (d) O(n+k) |
|