Construct Tree

Правка en1, от 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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский doxpox55 2021-07-30 15:17:44 473 Initial revision (published)