We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75a861b + f89b908 commit 86ebc4aCopy full SHA for 86ebc4a
4.shellSort.md
@@ -69,7 +69,7 @@ def shellSort(arr):
69
func shellSort(arr []int) []int {
70
length := len(arr)
71
gap := 1
72
- for gap < gap/3 {
+ for gap < length/3 {
73
gap = gap*3 + 1
74
}
75
for gap > 0 {
0 commit comments