Maxheap version of a heappush into heapq module
1 Nov
2020
1 Nov
'20
4:58 p.m.
heapq module contains all the function to implement a Heap structure, Main functions required to implement Heap data structure are: function heappush - to push an element in Heap function heappop - to pop an element from Heap for implementing Minheap this functions are present in the module as : heappush - for adding element into Minheap heappop - to pop an element from Minheap for implementing Maxheap only one of this two required functions is present: _heappop_max - to pop an element from Maxheap I suggest adding a Maxheap version of heappush into heapq module. _heappush_max - for adding an element into Maxheap. Comments are welcome.
1495
Age (days ago)
1495
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rudresh Veerkhare