Sitemap

BUBBLE SORT

Feb 14, 2024

--

Bubble sort is a simple sorting algorithm that repeatedly iterates through an unsorted list, comparing adjacent elements, and swapping them if they are in the wrong order. It's like pushing repeatedly smaller bubbles towards the bottom of the list until they are all sorted. and in this way largest element will go at the last.

Get Samoonalina’s stories in your inbox

Join Medium for free to get updates from this writer.

Press enter or click to view image in full size
program of bubble sort in which the given array elements are sorted in ascending order.
Press enter or click to view image in full size
the result gives a sorted array list.

--

--