Browsing the archives for the tree tag

Challenge – First Common Ancestor

Tweet Question: How would you find the first common ancestor of two nodes in a binary search tree? First as in the lowest in the tree. Another way to ask is to find the lowest common ancestor of two nodes. Challenge: Do you know the answer to this question? Post in the comments.¬†Answers will be […]