selectionSort(array, n):
for i = 1 -> n-1:
min_index = i
for j = i+1 -> n:
if (array[j] < array[min_index]):
min_index = j
swap(array[i], array[min_index])
SelectionSort
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||