please debug my code. link to my code - https://ide.codingblocks.com/s/261565
Test case 1 not passed
Hey, your code fails on input:
4
4 5
5 10
11 5
15 12
25 10
answer is 2 but your output is 1.
you should update fuel, prev and priority_queue once you have enough fuel to move to next station.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.