Question 5
Consider the below function for selection sort algorithm.
Assume that the list L=[25, 17, 20, 10, 15] is passed to the function selectionsort() as parameter. What will be the list L after the second pass of selection sort?
[10, 15, 20, 25, 17]
[10, 25, 20, 17, 15]
[10, 15, 25, 20, 17]
[25, 17, 20, 10, 15]