Selection sort step

[4, 1, 3, 2] → [1, 4, 3, 2]

You can also choose a level by clicking its number.

About the course

Description
The array after the first step of selection sort (the smallest element is swapped with the first one)
More information
Arrays are indexed from zero. Sorting is ascending (from the smallest) unless stated otherwise.
Sample question
[4, 1, 3, 2] → [1, 4, 3, 2]
Author
Jiří Preisler
Version
1.0