Insertion Sort algorithm in depth with C++
We can visualize an example of the Insertion Sort algorithm with an array of integers that needs to be sorted. In this case we will set the start position as the blue arrow that is located at index 1. Where we will compare 3 < 7 . If this is true, then we will have to swap these with eachother. Now, this is true for 3 < 7 so we will swap