Least Common Ancestor in a Tree with only Parent pointers

Given a tree with only children pointing to the parents, find the least common ancestor of 2 nodes.

One Comment

  1. techie007 says:

    This can be considered as a form of http://cstechie.com/find-intersection-point-of-2-linked-lists/
    So I guess the same solution works here.

Leave a Reply