Skip to content

Commit 9fdd5da

Browse files
authored
Update Readme.md
1 parent c329c4e commit 9fdd5da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BFS/207.Course-Schedule/Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DFS的基本思想是从任意一个未访问过的节点开始做DFS的遍历
2020
```cpp
2121
bool dfs(int cur)
2222
{
23+
if (visited[cur]==1) return true;
2324
visited[cur] = 2;
2425
for (int next: graph[cur])
2526
{

0 commit comments

Comments
 (0)