if we go from a-d then d-a always possible if net fuel greater than zero clarify
Sir plz clear my this doubt
Lets clear this with an example. Suppose you go from your house to grocery market having 5l petrol in your tank. When you reach grocery market you see that there’s still some liter of petrol in your tank let it be 2L. As you see that your grocery market has a petrol pump too. You can fill petrol from there and then you can reach to your house too.
Though you will get a clarity while seeing the code part video. I just explained crux. Watch the coding part to get more clarity.
Also this is only possible when you know that entire cost of travelling is more than or equal to 0. That means cost from travelling from house to grocery and grocery to house back is greater then zero which we did before calculating d-a or a-d. If it’s less then 0 (the net value) then there is no chance you are going to cover it.
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.