This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingSingle-source Dijkstra: the answer is the largest shortest distance, or impossible if some node never arrives.
What this asks
Find when a signal reaches every node.
Single-source Dijkstra; the answer is the largest shortest distance, or impossible when a node never arrives.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing