graph-valid-tree 1.0.0
Graph Valid Tree
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 50 of file main.cpp.

51{
52 vector<vector<int>> edges = {{0, 1}, {0, 2}, {0, 3}, {1, 4}};
53 cout << "output: " << Solution().validTree(5, edges) << '\n';
54 return 0;
55}
bool validTree(int n, vector< vector< int > > &edges)
Definition main.cpp:8

References Solution::validTree().