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.
So strange, I cannot pass tests like 21 when using Python3 heapq heapreplace with big numbers (wrong answer). Using heappop and heappush instead works fine. Most of the tests pass when using heapreplace. I wonder if there is an explanation besides me being a second tier programmer.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jesse and Cookies
You are viewing a single comment's thread. Return to all comments →
So strange, I cannot pass tests like 21 when using Python3 heapq heapreplace with big numbers (wrong answer). Using heappop and heappush instead works fine. Most of the tests pass when using heapreplace. I wonder if there is an explanation besides me being a second tier programmer.