How many comparisons will be made to sort the array arr={1,5,3,8,2} using pigeonhole sort?
(a) 5
(b) 7
(c) 9
(d) 0
The question was asked in final exam.
This intriguing question originated from Sorting topic in division Sorting of Data Structures & Algorithms II