You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a Heap data structure wrapping heapq functions #143
Using heapq functions on a list can be easily misused, forgetting to re-heapify the structure when manipulation is done done without using heapq functions, or using the regular pop() inadvertently.
For that particular case we would need to provide a way to get an element an arbitrary index, by keeping the heap a heap. We should properly document that this could be an expensive operation though.
Activity