阿摩線上測驗 登入

申論題資訊

試卷:110年 - 110學士後_醫學系︰計算機概論與程式設計#100246
科目:研究所、轉學考(插大)、學士後-計算機概論
年份:110年
排序:0

申論題內容

4. Suppose we have an array A containing 9 integers: 240, 119, 682, 341, 225, 556, 122, 661, 245, i.e. A = [240, 119, 682, 341, 225, 556, 122, 661, 245] with the first index being 0. Please convert the array A into a maxheap and show the content of A after conversion. Note that the conversion should be done in-place.