Introduction to Selection Sort

Selection sort works by finding the minimum, and then comparing each element to that minimum to decide its correct position. (Reading time: under 3 minutes)

Selection sort is a simple sorting algorithm, that loops over the array and saves the absolute lowest value. The lowest value is then swapped with the first item in the unsorted array.

Get hands-on with 1000+ tech skills courses.