UpperLEFTY / Selection-Sort

Go through the array, find the index of the lowest element swap the lowest element with the first element.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selection-Sort

Find the index of the lowest element swap the lowest element with the first element.

The first element is the lowest element in the array.

Go through the array (excluding the first element) and find the index of the lowest and swap it with the second element.

The array continues to select (find out) the lowest element of the array and putting it on the left until it hits the last element.

About

Go through the array, find the index of the lowest element swap the lowest element with the first element.


Languages

Language:JavaScript 100.0%