Bubble sort: Difference between revisions

From The Wiki Camp 2 Jr.
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Sorting algorithms]][Category:Pages with gameplay]]
[[Category:Sorting algorithms]][[Category:Pages with gameplay]]
'''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!
'''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!



Revision as of 16:56, 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