You are given an integer n, representing the number of nodes in an undirected graph with nodes numbered from n k and a edges, where edges[i]
At time edges exist in the graph. As time increases, each edge is removed at its designated time.
Return the minimum time needed for the graph to contain at least k connected components.
Constraints:
n
edges.length
edges[i]
n
k n
There are no duplicate edges.
You are given an integer n, representing the number of nodes in an undirected graph with nodes numbered from n k and a edges, where edges[i]
At time edges exist in the graph. As time increases, each edge is removed at its designated time.
Return the minimum time needed for the graph to contain at least k connected components.
Constraints:
n
edges.length
edges[i]
n
k n
There are no duplicate edges.