Sorting in descending order

Report a typo

How many exchanges are needed to sort the following integer array in descending order using selection sort? The algorithm fills the sorted subarray from left to right and does not exchange elements with itself.

{ 1, 2, 3, 4, 6, 5, 4 }
Enter a number
___

Create a free account to access the full topic