← Amazon questions

Determine if a path exists between two cities using an API

Filed under Amazon

Given a list of cities and a connectivity API isConnected(A, B) that returns true if there is a directed connection from city A to city B, write a function to determine if a path exists between two…

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.