You are viewing a single comment's thread. Return to all comments →
Finally figured out why 8 and 9 were timing out, the trick (for Python) here is to only worry about re-heapify if the value been deleted is the root.
QHEAP1
You are viewing a single comment's thread. Return to all comments →
Finally figured out why 8 and 9 were timing out, the trick (for Python) here is to only worry about re-heapify if the value been deleted is the root.