Define depth and height of a node
3 years ago
Data Structure and Algorithm
For any node ni, the depth of ni is the length of the unique path from the root to ni. The height of ni is the length of the longest path from ni to a leaf.
Sanisha Maharjan
Jan 23, 2022