Created
November 17, 2017 08:01
-
-
Save mikah13/a0aee35512e8d42864fb919294bd80d8 to your computer and use it in GitHub Desktop.
Bubble Sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin BubbleSort(list) | |
for all elements of list | |
if list[i] > list[i+1] | |
swap(list[i], list[i+1]) | |
end if | |
end for | |
return list | |
end BubbleSort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment