Skip to content

Selection sort

ordering

Level 1 of 3

Also called Straight selection.

For each place from the left, look through every number not yet placed for the smallest, and swap it into that place, where it stays. It looks at every pair once, however the row starts.

comparisons
0
swaps
0

step 1 of 1

Examples

Whole numbers from 1 to 99, between 2 and 12 of them, separated by commas or spaces.