โ† Amazon questions

Max distance from a given node in uni-directed graph

Filed under Amazon

Given an unweighted, undirected graph and a starting node, find the maximum possible shortest distance from the starting node to any other reachable node in the graph.

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

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