Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions DepthFirstSearch/C++/DFS(iterative).cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#include<bits/stdc++.h>

using namespace std;

using namespace std
vector<int> adj[1000]; //adjacency list of graph
bool visited[1000]={false} ; //array to keep track of visited nodes
bool visited[1000]={false} ; //array to keep track of visited

void dfs(int source)
{
Expand Down