Skip to content

Commit 3ef9fe7

Browse files
authored
Update ShellSort.java
1 parent 338fced commit 3ef9fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sorts/ShellSort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public <T extends Comparable<T>> T[] sort(T[] array) {
2222
for (; gap > 0; gap /= 3) {
2323
for (int i = gap; i < length; i++) {
2424
int j;
25-
T temp = array[i];
25+
T temp = array[i];
2626
for (j = i; j >= gap && less(temp, array[j - gap]); j -= gap) {
2727
array[j] = array[j - gap];
2828
}

0 commit comments

Comments
 (0)