Python has this library heapq, which we can use to perform heap operations. What does "q" stand for?
Asked
Active
Viewed 75 times
0
-
1say it out loud: "heap queue" – Primusa Feb 08 '19 at 02:23
2 Answers
0
So, Heap queue (or heapq) means the same. It is basically written in an easy way 'heapq' can we written as 'heap queue'. For your better understanding q = 'queue'. This library provides an implementation of the heap queue algorithm, also known as the priority queue algorithm.

Aditya Malviya
- 1,907
- 1
- 20
- 25