Examveda

Regarding implementation of Depth First Search using stacks, what is the maximum distance between two nodes present in the stack? (considering each edge length 1)

A. Can be anything

B. 0

C. At most 1

D. Insufficient Information

Answer: Option A


Join The Discussion

Related Questions on Graph Algorithms (DFS, BFS, Dijkstras, etc)