Why is the sorted array being printed when no return statement from function is used and without using a global variable?

后端 未结 0 657
野的像风
野的像风 2021-02-20 16:34

I\'m reading up on sort algorithms and came across this code:

def mergeSort(arr):
    if len(arr) > 1:
        mid = len(arr)//2
        L = arr[:mid]
                 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题