⚔ Sorting Algorithms

Selection Sort Monster

An in-place comparison-based sorting algorithm. It divides the input list into two parts: a sorted sublist built up from left to right, and a remaining unsorted sublist.

šŸ“Š
0
Array Size
āš–ļø
0
Comparisons
šŸ”„
0
Swaps
🐾
0
Total Steps
SELECTION 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

Custom Array Input

⚔ Algorithm Complexity

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