WA in spoj BUGLIFE. Bipartite graph

This post was flagged by the community and is temporarily hidden.

1
6 5
1 2
2 3
4 5
5 6
4 6
The answer by your BFS implementation is wrong.

1 Like