Question DSA-GRAPH-0029
EasyAn undirected graph has edges A–B, A–C, B–D and C–D, and neighbours are visited in alphabetical order. What is the BFS order starting from A?
- A.
A B D C
- B.
A D B C
- C.
Sign up free to see the answer and a step-by-step explanation.