Group the nodes of an undirected graph into connected components and return the largest gap between the biggest and smallest label in any one component. A Zscaler intern HackerRank OA question.
Group the nodes of an undirected graph into connected components and return the largest gap between the biggest and smallest label in any one component. A Zscaler intern HackerRank OA question.
Opens with the full question.