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.
- Jesse and Cookies
- Discussions
Jesse and Cookies
Jesse and Cookies
Sort by
recency
|
157 Discussions
|
Please Login in order to post a comment
TypeScript solution. Despite some optimizations, it still fails some tests due to time constraints. A JS priority queue / heap queue would be nice...
My Java solution with PriorityQueue was failing 4 timing test cases because.... i had a System.out command!
Be very careful with redundant operations, when you have failures on timing. I wasted like 30' of my time
Java solution using Priority Queue.
Java solution using priority queue:
Heap solution with python: