Graph TheoryMediumTrees
Trees · Medium problem
In a tree, two vertices are at distance (the path between them has edges). A new edge is added joining them. What is the length of the cycle created?
In a tree, two vertices are at distance (the path between them has edges). A new edge is added joining them. What is the length of the cycle created?