Microsoft Onsite
Anonymous User
3218

Find the lowest common ancestor of a binary tree which has links to its parents. It is a variation of this question: https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/

public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode parent
}

Comments (5)