← Zoho questions

Simulate petrol consumption across gas stations to reach destination

Filed under Zoho

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.

Related Zoho questions

Collected from public candidate posts and coding forums. Updated Nov 2026.