You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Insertion Sort We start iterating from the second element of array till last element and for every element we insert it at its correct position in the subarray before it.
'''
def insertionSort(arr):
for i in range(1, len(arr)): #iterating from the second element of array till last element