Golang常见的十大算法精简版
== end { break } for list[end] >= flag && end > start { end-- } for list[start] <= flag && end > start { start++ } if end > start { utils.SwapGo(list, start, end) } } utils.SwapGo(list, left, start) Sort(list, left, start - 1) Sort(list, start + 1, right) } RadixSort(基数排序) func Sort(list []int) { baseList := make([][]int, 10) maxDigist := maxDigist(list...阅读全文