Construct Tree

Revision en1, by doxpox55, 2021-07-30 15:17:44

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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English doxpox55 2021-07-30 15:17:44 473 Initial revision (published)