fix py decrement missing and in C move j-- to correct spot

This commit is contained in:
2023-08-07 23:29:47 -07:00
parent 82d3973ade
commit dc8d382910
2 changed files with 5 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ def insertion_sort(array):
while position >= 0:
if array[position] > temp_value:
array[position + 1] = array[position]
position -= 1
else:
break
array[position + 1] = temp_value