This commit is contained in:
2026-01-26 18:47:01 +08:00
parent b08a6b9776
commit 06508ed118
2 changed files with 40 additions and 0 deletions

15
test.go Normal file
View File

@@ -0,0 +1,15 @@
package main
import (
"fmt"
"sort"
)
func sorts(arr []int) {
sort.Ints(arr)
fmt.Println(arr)
}
func main() {
sorts([]int{3, 8, -10, 23, 19, -4, -14, 27})
}