Skip to content

Commit 2cf88df

Browse files
authored
Update heapify.py
1 parent d139a8e commit 2cf88df

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

BinaryTree/heapify.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
/*
1+
"""
22
Code to heapify a binary tree and perform insert and delete operations
3-
*/
3+
"""
44

55
# Max-Heap data structure in Python
6-
76
def heapify(arr, n, i):
87
largest = i
98
l = 2 * i + 1

0 commit comments

Comments
 (0)