I want to solve this problem. Even IVlad answered the problem, I didn't understand what's parent node and what's child node. Can you explain me?
Asked
Active
Viewed 178 times
2 Answers
2
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.

Jess
- 2,991
- 3
- 27
- 40
2
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

CloudyMarble
- 36,908
- 70
- 97
- 130