Topic: Graph Theory Problem / Level: intermediate

Problem: Write a program to find the longest path in a tree using dynamic programming.

Run the code to see the output here...