Both cases, values in nodes satisfy heap property max-heap with max-heap property: for every node i (other than root). A[Parent(i)] ≥ A[i].
確定! 回上一頁