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
- Queues
- Truck Tour
- Discussions
Truck Tour
Truck Tour
Sort by
recency
|
362 Discussions
|
Please Login in order to post a comment
Imo this is very easy
The challenge is how to test 2nd condition. If you want to test a pump number 2, than it need to go through [2 > 3 > 4 > 5 > 1] if there is 5 pumps. If during testing and that specific pump's remaining fuel get to below 0 than skip that pump
def truckTour(petrolpumps):
Python Solution
Who and how decides which question is how difficult? This question is definitely easy but it was marked as difficult :D