diff --git a/data_structures/heap/heap.ts b/data_structures/heap/heap.ts index 1782aabd..71f03be3 100644 --- a/data_structures/heap/heap.ts +++ b/data_structures/heap/heap.ts @@ -20,8 +20,8 @@ export abstract class Heap { ): boolean; /** - * In a maxHeap the the index with the larger value in returned - * In a maxHeap the the index with the larger value in returned + * In a maxHeap the index with the larger value is returned + * In a minHeap the index with the smaller value is returned */ protected abstract getChildIndexToSwap( leftChildIndex: number,