JavaScript:实现MinHeap最小堆算法 class MinHeap { constructor (array) { this.heap = this.initializeHeap(array)