← Questions

Shortest driving tour of resorts using maps APIs

0
Scale AICodingLast asked May 2025

A practical round in a small Python project. Given a home address and a list of resorts to visit:

  1. Resolve each place to a location with a places API.
  2. Collect the driving time between every pair of places with a routes API, handling failures and rate limits.
  3. Compute the order that visits every resort and returns home in the least total driving time. Brute force works for a handful of stops; explain the bitmask dynamic program for more.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding