← Google questions
CodingReported in a candidate post, Aug 2021

Count valid escape routes from city C to hometown H based on shortest path criteria

Filed under Google

Given an undirected weighted graph representing connected cities, count all valid paths from city C to hometown H such that each step moves to a neighboring city strictly closer to H in terms of…

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

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