How many comparisons will be made to sort the array arr={1, 5, 3, 8, 2} using bucket sort?
(a) 5
(b) 7
(c) 9
(d) 0
The question was asked in class test.
This is a very interesting question from Sorting topic in portion Sorting of Data Structures & Algorithms II