Explanation: the first swap takes place between 1 and 5. the second swap takes place between 3 and 2 which sorts our array.
Q. What is the number of swaps required to sort the array arr={5,3,2,4,1} using recursive selection sort?
β
Correct Answer: (C)
2
Explanation by: Mr. Dubey
the first swap takes place between 1 and 5. the second swap takes place between 3 and 2 which sorts our array.
Discussion
Question Analytics
535
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
96%
Success Rate