← Accolite questions

Minimum fuel cost path

Filed under Accolite

Given a sequence of n+1 cities (c0, c1, ..., cn) on a line with distances between consecutive cities and fuel prices at each city, find the minimum total cost to travel from c0 to cn and return back…

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 Accolite questions

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