Which of the following algorithms sort n integers, having the range 0 to (n² – 1), in ascending order in O(n) time?
Show answerHide answer
Correct answer: (C) Radix sort
Explanation
Radix sort because it sorts in integers in range 0 … (n² – 1) in O(n) time using base-n representation.