int lowestCommonAncestor(TreeNode* root, int o1, int o2) { return helper(root,o1,o2)->val; } TreeNode* helper(TreeNode* root, int o1, int o2) { if(root == NULL) return NULL; //递归边界 if(root->val == o1 || root->val == o2) return root; //分解为求左子树的子问题和右子树的子问题,采用后序遍历 ...