[New-bugs-announce] [issue42240] Add Maxheap version of a heappush into heapq module
Rudresh Veerkhare
report at bugs.python.org
Mon Nov 2 01:29:44 EST 2020
New submission from Rudresh Veerkhare <veerkharerudresh at gmail.com>:
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.
----------
components: Library (Lib)
messages: 380184
nosy: veerkharerudresh
priority: normal
severity: normal
status: open
title: Add Maxheap version of a heappush into heapq module
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42240>
_______________________________________
More information about the New-bugs-announce
mailing list