How many write operations will be required to sort the array arr={2,4,3,5,1} using cycle sort?
(a) 4
(b) 5
(c) 6
(d) 3
This question was addressed to me during an online interview.
Asked question is from Sorting topic in section Sorting of Data Structures & Algorithms II