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.
Hi,
I thought I'd solve this with a min heap.
I assumed that you can solve same dificulty testcases on the same day (otherwise testcase #1 doesn't make any sense.)
Here is my code:
Problem solving
You are viewing a single comment's thread. Return to all comments →
Hi, I thought I'd solve this with a min heap. I assumed that you can solve same dificulty testcases on the same day (otherwise testcase #1 doesn't make any sense.) Here is my code:
Trying the first of the additional tescases with input:
The expected output is 248 days, but my solution does it in 235:
I could use some help to find what I'm missing, because it looks correct to me...