The length of the path is the number of edges on the path. In a tree there is exactly one path form the root to each node.
What is the length of the path in a tree?
September 14, 2023 in Data Structure
September 14, 2023 in Data Structure
The length of the path is the number of edges on the path. In a tree there is exactly one path form the root to each node.