Shortest path to leaf node
Filed under Indeed
The question
Given a directed weighted tree, find the leaf node that has the shortest path from the root.
No write-up yet. Related questions below have one.
Related Indeed questions
Collected from public candidate posts and coding forums. Updated Nov 2026.