For any node n, the depth of n is the length of the unique path from the root to node n. Thus for a root the depth is always zero.
Discover more from Soa Technology | Aditya Website Development Designing Company
Subscribe to get the latest posts sent to your email.