var lowestCommonAncestor = function (root, nodes) {
return find(root, nodes);
function find(root, nodes) {
if (root == null) return null;
if (nodes.includes(root)) return root;
let left = find(root.left, nodes);
let right = find(root.right, nodes);
// 后序位置:
if (left && right) return root;
return left || right || null;
};
};