Search posts, tags, users, and pages
Given n nodes labeled from 0 to n-1 and a list of undirected edges, return the number of connected components in the graph.
tracelit
@tracelit
Markdown supported · ⌘↵ to post
No responses yet.