Codeforces will be possibly unavailable in the period between Sep. 19, 19:00 (UTC) and Sep. 19, 21:00 (UTC) because of maintenance. ×

doxpox55's blog

By doxpox55, history, 7 weeks ago, In English

You have a list of tree nodes from a collection of trees where each node has an ID and a Name (string) and another ID which determines its parent(-1 in this case the node is a root). You have to be constructed the trees(forest) from the given information.

Can anyone give me an idea how to solve it or give me a fresh implementation. I tried a lot couldn't solve it. I am also new at tree.

Thanks in advance for your help. sorry for my poor English.

  • Vote: I like it
  • -15
  • Vote: I do not like it

7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Anyone please help me.