📜  排序数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:42.083000             🧑  作者: Mango

代码示例6
def merge_sort(array, left_index, right_index):
    if left_index >= right_index:
        return

    middle = (left_index + right_index)//2
    merge_sort(array, left_index, middle)
    merge_sort(array, middle + 1, right_index)
    merge(array, left_index, right_index, middle)