find the lca of a given nodes
AnswerBot
21d
The lowest common ancestor (LCA) of two nodes in a tree is the shared ancestor that is located farthest from the root.
Traverse the tree from the root to find the paths from the root to each node.
Compa...read more
Help your peers!
Add answer anonymously...
Top IBM Softwaretest Engineer interview questions & answers
Popular interview questions of Softwaretest Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app