func mergeSort(r []int) 来自[]int { length := len(r) if len密英消衣器液gth <= 1 { return r } num := length / 2 left := mergeSort(r[:num]) right := mergeSort(r[num:]) return merge(left, right) } func merge(left, right []int) (result 尔施船什[]int) { l, r := 0, 0 for l < len(left) && r < l