Bubble sort

From The Wiki Camp 2 Jr.
Revision as of 15:01, 4 May 2024 by Coppersalts (talk | contribs) (This'll go on camp2 sr. when it reopens)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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