Skip to content

Commit

Permalink
Update Shell_Sort.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Harikrishnan6336 authored Mar 14, 2020
1 parent 747b181 commit 8ffedc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shell_Sort/Shell_Sort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void shellsort(int []array, int size)


//Shift other elements until the correct position of a[i] is found
for (j = i; j >= g && array[j - g] > temp && j >= g ; j -= g)
for (j = i; array[j - g] > temp && j >= g ; j -= g)
array[j] = array[j - g];

// put the element a[i] in its correct position
Expand Down

0 comments on commit 8ffedc7

Please sign in to comment.