Discover how different sorting algorithms work. Compare their performance, understand their complexity, and learn through interactive visualization.
Average: O(n²)
Repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
Comparisons
0
Element comparisons
Swaps
0
Array swaps
Array Accesses
0
Total array reads/writes
Time Elapsed
0ms
Visualization time
Repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.