Skip to content

Commit 41f0292

Browse files
authored
Update InsertionSort.c
1 parent ea50acb commit 41f0292

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sorting/InsertionSort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ int main()
2121
{
2222
// You'll enter the loop if the elmtToInsert is less than the element just before it.
2323

24-
arraySort[j+1] = arraySort[j]; /*shift the current element one place forward to create room for insertion of the
25-
elmtToInsert when the correct position is found */
24+
arraySort[j+1] = arraySort[j]; //shift the current element one place forward to create room for insertion of the elmtToInsert
2625
j--;
2726
}
2827
//when we exit the loop, j+1 will be the index of the correct position of the elmtToInsert
2928

3029
arraySort[j+1] = elmtToInsert ; //'insert' the elmtToInsert into its correct position
30+
3131
}
3232

3333

0 commit comments

Comments
 (0)