Sortify7
SlowFast
Bubble Sort
Bubble sort is a straightforward comparison-based sorting algorithm. It works by repeatedly comparing adjacent elements and swapping them if they are in the wrong order, thereby moving larger elements towards the end of the list with each pass. This process is repeated until the entire list is sorted and no further swaps are necessary.
Time Complexity
Worst Case:O(n²)
Average Case:O(n²)
Best Case:O(n)