🔀 Sorting Algorithm Visualizer

Watch algorithms sort data in real-time

50
50
Unsorted
Comparing
Swapping
Pivot
Sorted
0
Comparisons
0
Swaps
0.00s
Time
Ready
Status
Bubble Sort
Time: O(n²) Space: O(1)

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.