Skip to content

Instantly share code, notes, and snippets.

@maksadbek
Created October 20, 2013 11:03
Show Gist options
  • Select an option

  • Save maksadbek/7068095 to your computer and use it in GitHub Desktop.

Select an option

Save maksadbek/7068095 to your computer and use it in GitHub Desktop.
for i to n
min = i
for j=i+1 to n
if( A[min] > A[j])
min = j
end
end
swap(A[min], A[j])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment