Lowest Common Ancestor of a Binary Tree — Advanced Trees

Given two people in a family record, find the deepest shared ancestor, counting a person as their own ancestor, and return the entry of that person.

Advanced Trees · Medium

More in Advanced Trees

All algorithm problems