LeetCode236——二叉树的最近公共祖先

我的LeetCode代码仓:https://github.com/617076674/LeetCode 原题链接:https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/description/ 题目描述: 知识点:二叉树、递归 思路:递归寻找二叉树的最近公共祖先 如果root为null或者p、q中有一个就是
相关文章
相关标签/搜索