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
|
358 Discussions
|
Please Login in order to post a comment
Here is my solution. It uses python heapq library. It is fast
JAVA Using PriorityQueue
Guys, I implemented the whole MinHeap and stuff:
However, test case 22 was throwing a TLE, so I cahnged the whole code for this instead: