bubble sort
A sorting algorithm that 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.
Worst complexity: Best complexity:
basic bubble sort
//bubble sort code here
enhanced bubble sort
//enhanced bubble sort code here