摘要:
def adjust_deap(arr, p, b): while True: if 2 * p + 1 > b - 1: break elif 2 * p + 2 < b and arr[2 * p + 2] > arr[2 * p + 1] and arr[2 * p + 2] > arr[p]: arr[p], arr[2 * p + 2] = arr[2 * p + 2], arr[p] 阅读全文
posted @ 2019-09-06 02:19
WESWES
阅读(246)
评论(0)
推荐(0)

浙公网安备 33010602011771号