There was an error while loading. Please reload this page.
1 parent 75a861b commit f89b908Copy full SHA for f89b908
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