From 86dcb9f87c414178018566c07f04560ae53850be Mon Sep 17 00:00:00 2001 From: Rahul Rao <63695122+rahulrao0209@users.noreply.github.com> Date: Tue, 9 May 2023 13:29:09 +0530 Subject: [PATCH] chore: Fixed a comment in heap.ts --- data_structures/heap/heap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,