Binary Insertion Sort, Optimising Insertion Sort
Insertion sort has time complexities :
Worst-case performance: О(n^2) comparisons and swaps
Best-case performance: O(n) comparisons, O(1) swaps
Average performance: О(n^2) comparisons and swaps
• In the best case elements are already sorted...
ayyopavam.hashnode.dev3 min read