There is a network of edges, where each edges[i] = [u_i, v_i] represents a bidirectional communication link between server
Server
You are also given an integer array patience of length patience[i] seconds have elapsed since its most recent transmission and it has not yet received any reply, server patience[i] seconds until server
Return the earliest second at which the network becomes idle, meaning there are no messages in transit between any servers.
Constraints:
n == patience.length
patience[0]
patience[i]
edges.length
edges[i].length
There are no duplicate edges.
Each server can directly or indirectly reach another server.
There is a network of edges, where each edges[i] = [u_i, v_i] represents a bidirectional communication link between server
Server
You are also given an integer array patience of length patience[i] seconds have elapsed since its most recent transmission and it has not yet received any reply, server patience[i] seconds until server
Return the earliest second at which the network becomes idle, meaning there are no messages in transit between any servers.
Constraints:
n == patience.length
patience[0]
patience[i]
edges.length
edges[i].length
There are no duplicate edges.
Each server can directly or indirectly reach another server.