📜  最小堆插入 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:33.730000             🧑  作者: Mango

代码示例2
Williams Algorithm: top downwhile not end of array,     if heap is empty,         place item at root;     else,         place item at bottom of heap;         while (child > parent)             swap(parent, child);     go to next array element; end