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.
My langugage does not have built-in heap and I didn't want to implement it. I sorted array and used binary search to find the right place for a new cookie. It worked for most cases, but a few of them failed by timeout.
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 →
My langugage does not have built-in heap and I didn't want to implement it. I sorted array and used binary search to find the right place for a new cookie. It worked for most cases, but a few of them failed by timeout.