How many comparisons will be made to sort the array arr={1,5,3,8,2} using counting sort?
(a) 5
(b) 7
(c) 9
(d) 0
This question was posed to me in an interview for internship.
This question is from Sorting in chapter Sorting of Data Structures & Algorithms II