Re: 115 - Climbing Trees
Posted: Wed Jun 14, 2017 3:49 pm
If you read until this far and is still having trouble, some tips for you:
1) It is not a single tree, but a forest.
2) Not every line has a pair of names.
3) Do consider some cases: a.a a.a, a.a no.parent, and no.child a.a
I just got AC, but this problem gave me some minor headaches.
Good luck!
1) It is not a single tree, but a forest.
2) Not every line has a pair of names.
3) Do consider some cases: a.a a.a, a.a no.parent, and no.child a.a
I just got AC, but this problem gave me some minor headaches.
Good luck!