You are viewing a single comment's thread. Return to all comments →
I have a problem with how the trees are constructed. How do we determine which nodes are children?
In test case 1, the input is given as such:
10
1 2
1 3
2 4
2 5
3 6
3 7
4 8
8 9
10 9
For row "10 9", are we supposed to infer from the existence of node9 and its label that 10 is a child of 9?
Seems like cookies are disabled on this browser, please enable them to open this website
Subtrees And Paths
You are viewing a single comment's thread. Return to all comments →
I have a problem with how the trees are constructed. How do we determine which nodes are children?
In test case 1, the input is given as such:
10
1 2
1 3
2 4
2 5
3 6
3 7
4 8
8 9
10 9
For row "10 9", are we supposed to infer from the existence of node9 and its label that 10 is a child of 9?