Skip to content

Commit 00206aa

Browse files
committed
Update graph-valid-tree.cpp
1 parent c6b1606 commit 00206aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

C++/graph-valid-tree.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class Solution {
77
int parent;
88
vector<int>neighbors;
99
};
10+
1011
bool validTree(int n, vector<pair<int, int>>& edges) {
1112
if (edges.size() != n - 1) {
1213
return false;

0 commit comments

Comments
 (0)