递归法寻找公共祖先 class Solution { public: int lowestCommonAncestor(TreeNode* root, int o1, int o2) { // write code here return commonAncestor(root, o1, o2)->val; } TreeNode* commonAncestor(TreeNode* root, int o1, int o2){ if(!root) return nullptr; if(r...