@ -1,8 +1,7 @@
/*
//File: insertion_sort.go
File: insertion_sort.go
//Created Time: 2022-12-12
Created Time: 2022-12-12
//Author: msk397 (machangxinq@gmail.com)
Author: msk397 (machangxinq@gmail.com)
*/
package insertion_sort
func insertionSort(nums []int) {
//File: insertion_sort_test.go
File: insertion_sort_test.go
import (
@ -92,8 +92,7 @@ comments: true
}
nums[j+1] = base // 2. 将 base 赋值到正确位置
```
=== "JavaScript"