Y
Hacker News
new
|
ask
|
show
|
jobs
by
somezero
1557 days ago
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