Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Could you represent and store the descriptions more efficiently?
Could you find the root node?
The node that is not a child in any of the descriptions is the root node.