In how many comparisons does the array arr={1,4,2,3,5} gets sorted if we use sleep sort?
(a) 5
(b) 3
(c) 1
(d) 0
The question was asked during an interview for a job.
My doubt is from Sorting topic in section Sorting of Data Structures & Algorithms II