Bubble sort

From The Wiki Camp 2 Jr.
Revision as of 20:05, 4 May 2024 by Coppersalts (talk | contribs)
(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