#learntoprogra
Explore tagged Tumblr posts
cloudpunjabi · 3 years ago
Link
Bubble Sort is a sorting algorithm used to sort list items in specific order either ascending or descending order by comparing two adjacent values and swapping them until the list items are not in the intended order.
The comparison and swapping are repeated through each iteration until the array is sorted in specified order called a pass. The number of passes is equal to the number of elements in the array minus one.
1 note · View note