Build a simple, high performance Tree Data Structure in c#

后端 未结 3 435
不知归路
不知归路 2020-12-04 08:56

I need to create a product catalog, in tree type.

every tree node presents by a ID(string), the functions on the tree data only 2:

  1. getChild(strin
3条回答
  •  一整个雨季
    2020-12-04 09:24

    I created a Node class that could be helpfull. It is fast and has some extra properties, like:

    • Ancestors
    • Descendants
    • Siblings
    • Level of the node
    • Parent
    • Root
    • Etc.

提交回复
热议问题