https://www.jianshu.com/p/6b526aa481b1 https://github.com/raywenderlich/swift-algorithm-club/tree/master/Heap 注:文中没有说的:堆是完全二叉树。