Finding the center and radius of tree.
What is the most efficient way to find the center and radius of a weighted tree?
Codeforces Round 1096 Solution Discussion