Bubble sort: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
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!


334

edits

Navigation menu