Waymo logoWaymo
Coding·45 minMembers

Shortest Path from Source to Target Nodes (Dijkstra)

Members only

Classic Dijkstra phone screen: given a source node, a set of target nodes, and weighted edges between nodes, return the shortest distance from source to all targets (or the minimum over targets, depen...

SWE
dijkstra
graph
heap
medium
Frequency
Single report
Last asked
2026-05-01
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...