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