diff --git a/DFS/cpp/dfs.cpp b/DFS/cpp/dfs.cpp index 60cb5801..93ec2fa8 100644 --- a/DFS/cpp/dfs.cpp +++ b/DFS/cpp/dfs.cpp @@ -22,15 +22,14 @@ void dfs(int node) visited[node] = true; // For all nodes adjacent to the given node and have not yet been visited, we apply DFS function again. - for(int i=0;i