How many swaps are required for the given array1 and array 2 using selection sort respectively?
Note: The sorted array should be in increasing order.
Array 1: 7 6 8 5 9 4 10 3
Array 2: 10 9 8 7 6 5 4 3
1
6, 4
2
7, 7
3
7, 8
4
7, 0
How many swaps are required for the given array1 and array 2 using selection sort respectively?
Note: The sorted array should be in increasing order.
Array 1: 7 6 8 5 9 4 10 3
Array 2: 10 9 8 7 6 5 4 3