Skip to content

Commit f89b908

Browse files
authored
Update 4.shellSort.md
1 parent 75a861b commit f89b908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4.shellSort.md

Lines changed: 1 addition & 1 deletion
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)