What do I use for a max-heap implementation in Python?

Posted by Douglas Mayle on Stack Overflow See other posts from Stack Overflow or by Douglas Mayle
Published on 2010-03-23T15:58:02Z Indexed on 2010/03/23 16:13 UTC
Read the original article Hit count: 449

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?

© Stack Overflow or respective owner

Related posts about python

Related posts about recursive-datastructures