By induction and transitivity of ≥, the max heap property guarantees that the maximum element of a max-heap is at the root.
確定! 回上一頁