⚔ Sorting Algorithms

Bubble Sort Monster

A simple comparison-based sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.

šŸ“Š
0
Array Size
āš–ļø
0
Comparisons
šŸ”„
0
Swaps
🐾
0
Total Steps
BUBBLE SORT

Execution Log

Ready to sort items. Click Play to start.
Sorting Challenge
Can you sort the array manually with the optimal number of swaps? Click any two bars to swap them.

šŸ› ļø Array Controls

⚔ Algorithm Complexity

Worst-case Time O(n²)
Average Time O(n²)
Space Complexity O(1)