← Questions
Shortest driving tour of resorts using maps APIs
0
I was asked this
No reports yet. Sign in to say where you were asked it.
A practical round in a small Python project. Given a home address and a list of resorts to visit:
- Resolve each place to a location with a places API.
- Collect the driving time between every pair of places with a routes API, handling failures and rate limits.
- 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.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
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
