Question

Which tree traversal is most suitable for finding the shortest path in an unweighted graph represented as a tree?

A In-order traversal
B Pre-order traversal
C Post-order traversal
D Breadth-First Search (BFS)
E Depth-First Search (DFS)
Practice Next

Hey! Ask a query