Bubble Sort
Compares adjacent elements and swaps them if out of order
O(n²)
O(1)
Press ▶ to start visualization
0 / 0
Compares adjacent elements and swaps them if out of order