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.
- Prepare
- Data Structures
- Heap
- Jesse and Cookies
- Discussions
Jesse and Cookies
Jesse and Cookies
Sort by
recency
|
344 Discussions
|
Please Login in order to post a comment
C++ solution using priority queue
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions , feel free to give a star :) )
Simple golang solution with pq
I got all the testcases passed when I used a max heap
Stupid exercise. I implemented a textbook O(log(n)) definition of a MinHeap and still got timed out by one test. The Python test time needs to be increased, or the question should specify to use a built-in module.