Reachability in an undirected graph: O(V+E) algorithm using BFS/DFS.

Analyze the reachability in an undirected graph: o(v+e) algorithm using bfs/dfs..

Examples
Input: "test_input_1"
Output: "output_1"
Hints

Reachability in an undirected graph: O(V+E) algorithm using BFS/DFS.

Analyze the reachability in an undirected graph: o(v+e) algorithm using bfs/dfs..