Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

what is heapq in python

Heap queue is a special tree structure in which each parent node is less than or equal to its child node. In python it is implemented using the heapq module. It is very useful in implementing priority queues where the queue item with higher weight is given more priority in processing
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #heapq #python
ADD COMMENT
Topic
Name
7+7 =