Lowest Common Ancestor
Monday, March 21st, 2011Yet another PP challenge piqued my interest. Here's the problem statement: Today’s problem appears with some regularity at places like Proggit and Stack Overflow and in lists of programming interview questions: Given a binary tree t and two elements of the tree, m and n, with m<n, find the lowest element ...