package leetcode;

/**
 * https://leetcode.com/problems/network-delay-time/
 */
public class Problem743 {
    public int networkDelayTime(int[][] times, int N, int K) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem743 prob = new Problem743();
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/network-delay-time/
 */
public class Problem743 {
    public int networkDelayTime(int[][] times, int N, int K) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem743 prob = new Problem743();
        System.out.println(prob.networkDelayTime(new int[][]{
            {2, 1, 1}, {2, 3, 1}, {3, 4, 1}
        }, 4, 2)); // 2
    }
}

Update problem 743