Page 1 of 1

Re: 12437 - Kisu Pari Na 2

Posted: Thu Jan 22, 2015 12:08 am
by voot_sust
What type of problem is it?
BFS or other....
I'm not so clear about this problem statement.

Re: 12437 - Kisu Pari Na 2

Posted: Sat Jan 24, 2015 7:51 am
by brianfry713
You can solve it using DFS. The graph is a forest.
For each tree, find the number of nodes and the diameter.