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.
Basically if pqremove isnt empty and we havent found the smallest element in pq yet it means we dont care about these values. We can throw them away from both priority queues's since they were removed by the user.
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 →
Basically if pqremove isnt empty and we havent found the smallest element in pq yet it means we dont care about these values. We can throw them away from both priority queues's since they were removed by the user.