We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I implemented a basic Heap in Python3 with linear deletion time. It passed all cases except 4. I also thought the deletion was probably the weak spot, the above algo for deletion was what I was thinking about as well.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
QHEAP1
You are viewing a single comment's thread. Return to all comments →
I implemented a basic Heap in Python3 with linear deletion time. It passed all cases except 4. I also thought the deletion was probably the weak spot, the above algo for deletion was what I was thinking about as well.