Insertion Sort
Build the sorted array one element at a time by inserting each new element into its correct position within the sorted prefix.
Time O(n²) | Space O(1) | Stable | In-place
Data
Size15
Speed800ms
default
comparing
swapping
sorted
key