Expand description

find a farthest node from any node in O(1) a farthest node from each node is one of the tree diameter terminals.

Structs