AlgoMaster Logo

261. Graph Valid Tree

n=5,edges=[[0,1],[0,2],[0,3],[1,4]]
0 / 20
algomaster.io
Step:4 edges matches n - 1, so the edge count is right