mirror of
https://github.com/lWolvesl/leetcode.git
synced 2026-02-27 03:38:08 +08:00
16 lines
164 B
Go
16 lines
164 B
Go
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})
|
|
}
|