0:00 題目說明
1:54 思路說明
8:51 程式說明以及複雜度分析
Problem:https://leetcode.com/problems/graph-valid-tree/
E = Number of edges, N = Number of nodes
Time complexity : O(N+E)
Space complexity : O(N+E)
Code:https://github.com/kobukuro/leetcode/blob/master/Graph/261.%20Graph%20Valid%20Tree.py
Download
0 formats
No download links available.
[Leetcode] 261. Graph Valid Tree 中文解說 - Python | NatokHD