js
大顶堆
题目 群里有个人发的,题目很简单 随手写的 //debug print function DB(obj) { // console.log(obj); } //debug print maxHeap function DBPMH(maxHeap) { if(!maxHeap || MaxHeap != maxHeap.constructor) { DB("DBPMH the input is not MaxHeap"); return; } let arr = maxHeap.arr; let len = maxHeap.len; DB(" \tlen is " + len); for(let i