InterviewSolution
Saved Bookmarks
| 1. |
What is the auxiliary space requirement of counting sort?(a) O(1)(b) O(n)(c) O(log n)(d) O(n+k) k=range of inputI had been asked this question in an international level competition.My question is from Sorting topic in section Sorting of Data Structures & Algorithms II |
|
Answer» The correct choice is (d) O(n+k) k=range of input |
|