【2587410】評論
最差時間複雜度分別為extract-min:Θ(log n),insert:Θ(log n)
【人人都可以是食神!!!】評論
1.重點:min-heap ← 已經是一個二元樹了,樹根是最小的值。2.不論取最小或新增一個,最差時間複雜度 都是 log(n) <= 底是2,不是10。參考來源:http://notepad.yehyeh.net/Content/Algorithm/Sort/Heap/Heap.phphttps://yotsuba1022.gitbooks.io/data-structure-note/content/heap-tree.html