Sorting numbers in ascending order

Report a typo

Given the following array of integers:


{ 23, 27, 21, 22, 25, 20, 24 }

We sort the array using selection sort in the ascending order. At each iteration, we move the following minimum element to the left part of the array.

What index in the array will the number 23 have after four full iterations of the algorithm? Enter a number.
Enter a number
___

Create a free account to access the full topic