Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 86ebc4a

Browse files
authored
Merge pull request hustcc#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

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)

AltStyle によって変換されたページ (->オリジナル) /