News for hackers. Stuff that matters.
Re:Python built-ins worth learning (2019) by somezero on Friday March 11, 2022 @07:01PM (#30647653)
heapq exposes a minheap by default, but there is a maxheap as well that for some reason, is not exposed! Just do heapq._heapify_max

There are no comments on this comment yet.