Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 254 Bytes

File metadata and controls

4 lines (3 loc) · 254 Bytes

Heap

是一颗完全二叉树,树中每个结点的值都不小于(或不大于)其左右孩子的值。 如果父结点均大于等于子结点,那么就是大顶堆;如果父结点均小于等于子结点,那么就是小顶堆。