Network Delay Time

#743
Medium
Advanced Graphs
O(E log V)
O(V + E)
Amazon
Google
Facebook
View on LeetCode

Problem Description

You are given a network of n nodes. Given times array and integers n and k, return the time it takes for all nodes to receive the signal sent from node k.