A car starts at position 0 with `initial_fuel` litres of fuel and consumes 1 litre per kilometre. Given a destination distance `target` and a list of petrol stations `[location, capacity]`, return the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.