You are viewing a single comment's thread. Return to all comments →
Here is my Python solution.
def print_array(arr): print(' '.join(map(str, arr))) def insertionSort2(n, arr): for i in range(1, n): for j in range(i): if arr[j] > arr[i]: arr[i], arr[j] = arr[j], arr[i] print_array(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 →
Here is my Python solution.
`