Least Common Ancestor

You are given a Binary Tree and two nodes N1 and N2, you need to return the least common ancestor of N1 and N2. The … Continue reading Least Common Ancestor

Continue reading