Topic: Graph Theory Problem / Level: beginner

Problem: Implement a function to count the number of vertices in the longest path of a tree.

Run the code to see the output here...