Practice Problem

Graph Valid Tree

Difficulty: Medium

Given n nodes and a list of undirected edges, determine if these edges form a valid tree (connected and acyclic).