
leetcode.com
https://leetcode.com/problems/lowest-common-ancest…
Lowest Common Ancestor of a Binary Tree - LeetCode
Example 2: [https://assets.leetcode.com/uploads/2018/12/14/binarytree.png] Input: root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 4 Output: 5 Explanation: The LCA of nodes 5 and 4 is 5, since a node can be a descendant of itself according to the LCA definition.