Skip to content

Commit 1cc8c98

Browse files
authored
chore: Fixed a comment in heap.ts (TheAlgorithms#129)
1 parent 23e9dc0 commit 1cc8c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/heap/heap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export abstract class Heap<T> {
2020
): boolean;
2121

2222
/**
23-
* In a maxHeap the the index with the larger value in returned
24-
* In a maxHeap the the index with the larger value in returned
23+
* In a maxHeap the index with the larger value is returned
24+
* In a minHeap the index with the smaller value is returned
2525
*/
2626
protected abstract getChildIndexToSwap(
2727
leftChildIndex: number,

0 commit comments

Comments
 (0)