Question: In a graph, if you want to check if there is a path between two nodes, which traversal method would be more suitable?
Options:
Correct Answer: Both are equally suitable
Solution:
Both BFS and DFS can be used to check if there is a path between two nodes, but BFS is generally preferred for finding the shortest path.