2022年8月13日

从二叉树根节点搜索到指定结点的路径

摘要: LC 236题,二叉树的最近公共祖先:https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-tree/ 其中一种解法的关键,是找到从根节点到指定结点的路径。 public static boolean findPath(Tre 阅读全文

posted @ 2022-08-13 18:59 浪荡绅士 阅读(45) 评论(0) 推荐(0)

导航