1.堆排序
def sift(Data,low,high):
ptrParent=low
ptrChild=low*2+1
while ptrChild<=high:
if ptrChild+1<=high and Data[ptrChild]
1.堆排序
def sift(Data,low,high):
ptrParent=low
ptrChild=low*2+1
while ptrChild<=high:
if ptrChild+1<=high and Data[ptrChild]