We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 338fced commit 3ef9fe7Copy full SHA for 3ef9fe7
Sorts/ShellSort.java
@@ -22,7 +22,7 @@ public <T extends Comparable<T>> T[] sort(T[] array) {
22
for (; gap > 0; gap /= 3) {
23
for (int i = gap; i < length; i++) {
24
int j;
25
- T temp = array[i];
+ T temp = array[i];
26
for (j = i; j >= gap && less(temp, array[j - gap]); j -= gap) {
27
array[j] = array[j - gap];
28
}
0 commit comments