Bubble sort: Difference between revisions
Jump to navigation
Jump to search
Coppersalts (talk | contribs) (This'll go on camp2 sr. when it reopens) |
Coppersalts (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''Bubble sort''' is a [[sorting algorithm]] which sorts elements one by one by having them "bubble up" through the list. At each step, adjacent elements are compared, and if the left element is greater than the right element, they are swapped. Try it out for yourself! | '''Bubble sort''' is a [[sorting algorithm]] which sorts [[elements]] one by one by having them "[[Giggles|bubble up]]" through the list. At each [[step]], adjacent elements are compared, and if the left element is greater than the right element, they are swapped. Try it out for yourself! | ||
== Gameplay == | == Gameplay == |
Revision as of 15:02, 4 May 2024
Bubble sort is a sorting algorithm which sorts elements one by one by having them "bubble up" through the list. At each step, adjacent elements are compared, and if the left element is greater than the right element, they are swapped. Try it out for yourself!
Gameplay