Skip to content

The longest path in a tree

The longest path between any two nodes of a tree is wanted.

What is computed at each node?