Skip to content

Commit 86ebc4a

Browse files
authored
Merge pull request #54 from juliofeng/patch-1
Update 4.shellSort.md
2 parents 75a861b + f89b908 commit 86ebc4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4.shellSort.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def shellSort(arr):
6969
func shellSort(arr []int) []int {
7070
length := len(arr)
7171
gap := 1
72-
for gap < gap/3 {
72+
for gap < length/3 {
7373
gap = gap*3 + 1
7474
}
7575
for gap > 0 {

0 commit comments

Comments
 (0)