複選題
45. Consider a min-heap. Which of the following statements are true?
(A) For any subtrec of a min-heap, the root of the subtree contains the smallest key occurring anywhere in that subtree.
(B) An array that is in ascending order is a binary min-heap.
(C) The scqucnce [1.5.6,7.14,17.10.23 13.12] is a binary min-heap.
(D) The largest key must reside in a leaf.
(E) The smallest key must reside in a leaf

答案:登入後查看
統計: 尚無統計資料

詳解 (共 1 筆)

#7105787
1. 題目解析 這是一道關於最小堆(m...
(共 972 字,隱藏中)
前往觀看
0
0