← Amazon questions
CodinghardReported in a candidate post, Aug 2021

Reach destination city with fuel constraints

Filed under Amazon

Given N cities, M bidirectional roads with unit travel costs, a start city, a destination, an initial fuel capacity, and a set of refill stations, determine if the destination can be reached.

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

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