What do you mean by level of the tree?
3 years ago
Data Structure and Algorithm
The root node is always considered at level zero, then its adjacent children are supposed to be at level 1 and so on.
Here, node A is at level 0, nodes B and C are at level 1 and nodes D and E are at level 2.
Sanisha Maharjan
Jan 23, 2022