⚔ Sorting Algorithms

Insertion Sort Monster

An intuitive sorting algorithm that builds the final sorted array one item at a time. It works by taking elements from the unsorted part and inserting them at their correct position in the sorted part.

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