Loading repovive.com/problems/classics/32
Given an array of integers, sort them in non-decreasing order using the Bubble Sort algorithm.
Bubble Sort repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.