AlgoMaster Logo

743. Network Delay Time

times=[[2,1,1],[2,3,1],[3,4,1]],n=4,k=2
0 / 17
Network Delay Time (source: 2, n: 4)11112340Legend:UnvisitedCurrentCheckingProcessedTime to reach each node:12034Processed Nodes:(none)Min-Heap (time, node):(empty)
algomaster.io
Step:Initialize distances: source node 2 = 0, all others = ∞