Skip to content

Commit 7ce3515

Browse files
committed
heap
0 parents  commit 7ce3515

File tree

1 file changed

+5
-0
lines changed
  • Algorithms for Searching, Sorting, and Indexing/Heap Data Structure

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# In this approach Bubble down (sink) approach is used to create min heap
2+
3+
arr = [4, 10, 3, 5, 1]
4+
build_min_heap(arr)
5+
print(arr)

0 commit comments

Comments
 (0)