Update heap.md
This commit is contained in:
parent
af23d7a0db
commit
658ad90377
@ -414,9 +414,7 @@ comments: true
|
||||
考虑从入堆结点开始,**从底至顶执行堆化**。具体地,比较插入结点与其父结点的值,若插入结点更大则将它们交换;并循环以上操作,从底至顶地修复堆中的各个结点;直至越过根结点时结束,或当遇到无需交换的结点时提前结束。
|
||||
|
||||
=== "Step 1"
|
||||
<figure markdown>
|
||||

|
||||
</figure>
|
||||

|
||||
|
||||
=== "Step 2"
|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user