Skip to content

Commit bc86a8c

Browse files
committed
Fix a typo in heapify-hello.py
1 parent 7adadf6 commit bc86a8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/heapify-hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
def min_heapify(arr: list, index: int) -> None:
19-
"""Make sure the subtree at index i is a max-heap by checking if left or
19+
"""Make sure the subtree at index i is a min-heap by checking if left or
2020
right child are smaller than parent. If so, swap parent with the smaller
2121
child. Recursively do the same for for the child's new position, to keep
2222
fixing downwards.

0 commit comments

Comments
 (0)