We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d3df9 commit 06adb39Copy full SHA for 06adb39
heap.ts
@@ -57,6 +57,7 @@ class Heap {
57
// returns the max element in the heap and deletes it from the heap
58
let max = this.heap[0]
59
this.delete(0)
60
+ this.heap = this.buildHeap(this.heap)
61
return max
62
}
63
0 commit comments