We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab7ad40 commit 31beff1Copy full SHA for 31beff1
17. Graphs/04c Breadth First Search.cpp
@@ -1,7 +1,7 @@
1
#include<bits/stdc++.h>
2
using namespace std;
3
4
-//find number of islands problem
+//find number of islands problem or find number of connected components
5
void bfs(vector<int> adj[], int s, bool visited[])
6
{
7
queue<int> q;
0 commit comments