bars
📈
notes
search
circle-xmark
Ctrl
k
copy
Copy
chevron-down
0261_Graph_Valid_Tree
思路1 dfs
判断图是不是树,满足两点
是连通图
不存在环,即要求边数小于顶点数
如果边 >= 顶点数,则必存在环
Previous
0261_Graph_Valid_Tree
chevron-left
Next
0262_Trips_and_Users
chevron-right
Last updated
5 years ago
Was this helpful?
Was this helpful?