Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirPaulb committed Apr 1, 2022
1 parent a7a3bd7 commit 20f90e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 08_Heap/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Using Library functions :
We use heapq class to implement Heaps in Python.
By default Min Heap is implemented by this class.
But we multiply each value by -1 so that we can use it as MaxHeap.

1. **heappush**: new child node is added to the binary tree in left to right order
2. **heappop**: the main root node is removed from the binary tree as it is the smallest node is the BT.



Expand Down

0 comments on commit 20f90e2

Please sign in to comment.