#743

Network Delay Time

medium· Advanced Graphsruns: 0

You are given a network of n nodes labeled 1 to n. You are also given times, where times[i] = [u, v, w] indicates a signal that takes w time to travel from u to v. Given a starting node k, return the minimum time for a signal to reach all n nodes. If impossible, return -1.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.