2

The more I learn, the more easily I get triggered at little things.
Read heapq python documentation to implement a min priority queue

Intuitively wrote heapq.push and heapq.pop in my code

Got to know that it's actually heapq.heappush and heapq.heappop
TRIGGERED!

Comments
Add Comment