12437 - Kisu Pari Na 2

All about problems in Volume 124. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
voot_sust
New poster
Posts: 1
Joined: Sat Jan 03, 2015 12:59 am

Re: 12437 - Kisu Pari Na 2

Post by voot_sust »

What type of problem is it?
BFS or other....
I'm not so clear about this problem statement.
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12437 - Kisu Pari Na 2

Post by brianfry713 »

You can solve it using DFS. The graph is a forest.
For each tree, find the number of nodes and the diameter.
Check input and AC output for thousands of problems on uDebug!
Post Reply

Return to “Volume 124 (12400-12499)”