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 23e9dc0 commit 1cc8c98Copy full SHA for 1cc8c98
data_structures/heap/heap.ts
@@ -20,8 +20,8 @@ export abstract class Heap<T> {
20
): boolean;
21
22
/**
23
- * In a maxHeap the the index with the larger value in returned
24
+ * In a maxHeap the index with the larger value is returned
+ * In a minHeap the index with the smaller value is returned
25
*/
26
protected abstract getChildIndexToSwap(
27
leftChildIndex: number,
0 commit comments