Skip to content

Commit 1ca05fe

Browse files
committed
Update graph-valid-tree.py
1 parent 332d6d1 commit 1ca05fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/graph-valid-tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def validTree(self, n, edges):
1818
nodes[edge[0]][neighbors].append(edge[1])
1919
nodes[edge[1]][neighbors].append(edge[0])
2020

21-
# BFS to check whether the graph is valid tree.
21+
# BFS to check whether the graph is a valid tree.
2222
visited = {}
2323
q = collections.deque()
2424
q.append(0)

0 commit comments

Comments
 (0)