Principle and implementation of max heap
Original link: http://www.nosuchfield.com/2022/06/29/Principle-and-implementation-of-maximum-heap/ Fundamental The maximum heap is a binary tree, and the parent node of the binary tree is required to be larger than its child nodes. At the same time, the binary tree is a complete binary tree, which means that all nodes except the bottom layer of the binary tree should be […]
Principle and implementation of max heap Read More »