You are viewing a single comment's thread. Return to all comments →
Please update the problem statement to be more descriptive.
At this stage, it is not clear as to what this statement means :
"a tree with N nodes"
1. is it a tree with total number of nodes = n ?
2. is it a tree with height = n ?
3. is it a tree with number of child nodes of each node = n ?
and this: "path from u to v", and "edges of the tree"