You are viewing a single comment's thread. Return to all comments →
def insertionSort2(n, arr):
for i in range(1, n): for j in range(i, 0, -1): if arr[j]<arr[j-1]: arr[j], arr[j-1] = arr[j-1], arr[j else: break print(*arr)
Seems like cookies are disabled on this browser, please enable them to open this website
Insertion Sort - Part 2
You are viewing a single comment's thread. Return to all comments →
def insertionSort2(n, arr):