Блог пользователя doxpox55

Автор doxpox55, история, 3 года назад, По-английски

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.

  • Проголосовать: нравится
  • -15
  • Проголосовать: не нравится