LC: 261. Graph Valid Tree
https://leetcode.com/problems/graph-valid-tree/
Input: n = 5, edges = [[0,1],[0,2],[0,3],[1,4]]
Output: trueInput: n = 5, edges = [[0,1],[1,2],[2,3],[1,3],[1,4]]
Output: falseLast updated
https://leetcode.com/problems/graph-valid-tree/
Input: n = 5, edges = [[0,1],[0,2],[0,3],[1,4]]
Output: trueInput: n = 5, edges = [[0,1],[1,2],[2,3],[1,3],[1,4]]
Output: falseLast updated
class Solution {
public boolean validTree(int n, int[][] edges) {
}
}