Skip to content

Commit 361e8b5

Browse files
authored
Merge pull request onlybooks#29 from Lumaius/patch-1
Update 39-2.py
2 parents c5af14f + fbc6602 commit 361e8b5

File tree

1 file changed

+1
-1
lines changed
  • 4-non-linear-data-structures/ch12

1 file changed

+1
-1
lines changed

4-non-linear-data-structures/ch12/39-2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def dfs(i):
1616
# 순환 구조이면 False
1717
if i in traced:
1818
return False
19-
# 이미 방문했던 노드이면 False
19+
# 이미 방문했던 노드이면 True
2020
if i in visited:
2121
return True
2222

0 commit comments

Comments
 (0)