InterviewDB Experience

Driving Distance: Compute Total Driving Distance for a Route Through Ordered Waypoints

Interview Experience

Problem Given a sequence of GPS waypoints representing a planned route, compute the total driving distance. Each consecutive pair of waypoints is connected by a road segment whose distance is provided in a distance matrix. Example: Follow-ups How would you find the shortest route visiting all waypoints exactly once (TSP)? What is the complexity? If the route loops back to the start, how do you detect and handle it? How would you incorporate real-time traffic data to adjust segment distances dyna…

Full Details

🔒

Unlock all Waymo questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a candidate experience report from a waymo interview during the phone round.

It covers the following topics: Coding, Phone, Matrix .