Skip to content
RED SAGSkills
hard20 pts · first answer countsgraphstreesbfs

Diameter of a tree with two searches

Why does "BFS from any node to the farthest node u, then BFS from u to the farthest node v" give the diameter of a tree?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions