Bubble sort
Bubblesort algorithm is the simplest sorting algorithm.
Each element of the array is compared (and swapped if bigger) with every other element of the array.
The complexity is O(n2).
Resources
| https://en.wikipedia.org/wiki/Bubble_sort |
Bubblesort algorithm is the simplest sorting algorithm.
Each element of the array is compared (and swapped if bigger) with every other element of the array.
The complexity is O(n2).
| https://en.wikipedia.org/wiki/Bubble_sort |