Pls tell error in this code
Hey @Vaibhav277
Its an undirected graph , so replace add edge by this
void addEdge(int x, int y){
l[x].push_back(y);
l[y].push_back(x);
}
Hey @Vaibhav277
Its an undirected graph , so replace add edge by this
void addEdge(int x, int y){
l[x].push_back(y);
l[y].push_back(x);
}