We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 433fe81 commit 2bdf572Copy full SHA for 2bdf572
SortingAlgorithm/Java/ShellSort/ShellSort.java
@@ -37,7 +37,7 @@ public class ShellSort {
37
private static int getGap(int length) {
38
int index = 0;
39
int len = (int)(length / 2.25);
40
- while (gap[index++] < len);
+ while (gap[index] < len) index++;
41
return index;
42
}
43
0 commit comments