← CS_basics
Visualizer
/
Bubble Sort
🌙
Bubble Sort
Repeatedly swap adjacent elements if out of order. Simple but O(n²).
Unsorted
Comparing
Swapping
Sorted
Controls
Array size:
20
Speed
Run
Reset
Time: O(n²) | Space: O(1)
Stats