def quicksortHelper(lyst,left,right):
if left<right:
pivoLocation = partion(lyst,left,right)
quicksortHelper(lyst,left,pivoLocation-1)
quicksortHelper(lyst,pivoLocation+1,right)
问一下quicksortHelper(lyst,left,pivoLocation-1)和quicksortHelper(lyst,left,pivoLocation-1)同时调用,还是等quicksortHelper(lyst,left,pivoLocation-1)执行完成后,再执行quicksortHelper(lyst,pivoLocation+1,right)。谢谢!
BigBlackQu
相关分类