摘要: 题目链接 https://pintia.cn/problem-sets/994805342720868352/problems/994805343727501312 题解 题目要求 最近公共祖先(LCA,The lowest common ancestor) 在一颗树中,结点U和V的LCA是U和V为 阅读全文
posted @ 2020-09-07 21:49 臭咸鱼 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目链接 https://pintia.cn/problem-sets/994805342720868352/problems/1038430130011897856 题解 题目要求 最近公共祖先(LCA,The lowest common ancestor) 在一颗树中,结点U和V的LCA是U和V 阅读全文
posted @ 2020-09-07 16:30 臭咸鱼 阅读(136) 评论(0) 推荐(0) 编辑