Intuit Interview Question

Find the common ancestor for given two nodes

Interview Answer

Anonymous

Mar 2, 2018

Use recursion to find the parents of each node and store them in two seperate Lists and then compare the Collections to see if they have anything in common