开发者

What's parent node and how to store it?

开发者 https://www.devze.com 2023-03-01 10:20 出处:网络
I want to sol开发者_StackOverflowve this problem. Even IVlad answered the problem, I didn\'t understand what\'s parent node and what\'s child node. Can you explain me?Any node that has a child is call

I want to sol开发者_StackOverflowve this problem. Even IVlad answered the problem, I didn't understand what's parent node and what's child node. Can you explain me?


Any node that has a child is called a parent node. The descendents of the parent node are child nodes. Most nodes can be parents of children and children of other parents.

http://en.wikipedia.org/wiki/Tree_(data_structure)


You will have to read the Tree datastructure before solving such a problem, the Parent and Child nodes are the alphabet of the Tree structure : Read the Terminology of a Tree (data structure) and Binary tree

0

精彩评论

暂无评论...
验证码 换一张
取 消