Search posts, tags, users, and pages
Given n nodes and a list of undirected edges, determine if the edges form a valid tree. A valid tree must be connected and have exactly n-1 edges with no cycles.
tracelit
@tracelit
Markdown supported · ⌘↵ to post
No responses yet.