VisaSoftware Engineer · Take-home ProjectCodemia practiceFind connected components in graph
Given an undirected graph represented as an adjacency list, write a function to find all connected components in the graph. The function should return a list of lists, where each inner list contains the nodes of a connected component. The input will be a list of edges, and the output should be the connected components identified in the graph.