Tree Algorithms
Finding Diameter of Tree
You can get the diameter of the tree by performing 2 DFS.
Cheran says you can also just try Post-Order Traversal, like what they do here
In CS341, we learned a Divide-and-conquer way of approaching this problem.
I actually really struggle with this question.