Divide Nodes Into the Maximum Number of Groups
Try to solve the Divide Nodes Into the Maximum Number of Groups problem.
We'll cover the following...
We'll cover the following...
Statement
You are given an undirected graph with n nodes labeled from n, and an edge list edges where each edges[i] connects two distinct nodes.
You want to partition all nodes into the maximum possible number of non empty groups, numbered consecutively from