What do I use for a max-heap implementation in Python?
Asked 07 September, 2021
Viewed 375 times
  • 59
Votes

Python includes the heapq module for min-heaps, but I need a max heap. What should I use for a max-heap implementation in Python?

17 Answer