Find the distance between two nodes in a tree without parent pointers.
Unlock detailed company stats for this questionUpgrade
Find the distance between any two nodes in a tree. Parent pointers are not given; the input contains only the root, the source node, and the target node.
Also asked as · Find the distance between two nodes in a tree.
Community answers
No answers contributed by the community yet.


