[基础算法]-快排
2021-03-03 19:26
阅读:479
标签:int imp make can func return sprint lang UNC [基础算法]-快排 标签:int imp make can func return sprint lang UNC 原文地址:https://www.cnblogs.com/Tsuki123/p/14387372.htmlpackage main
import (
"fmt"
"strings"
)
func quickSort(l, r int, arry []int) {
if l>=r {
return
}
i,j := l-1,r+1
val := arry[(l+r)/2]
for i
评论
亲,登录后才可以留言!