Skip to content
RED SAGSkills
easy5 pts · first answer countsstacks-and-queuespython

Max-heap with Python heapq

Python's heapq module only provides a min-heap. What is the common way to use it as a max-heap for numbers?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions