Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,6 +1,6 @@
|
|||
fn shell(mut arr []int, n int) {
|
||||
mut j := 0
|
||||
for h := n; h /= 2; {
|
||||
for h := n; h > 0; h /= 2 {
|
||||
for i := h; i < n; i++ {
|
||||
t := arr[i]
|
||||
for j = i; j >= h && t < arr[j - h]; j -= h {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue