From b66eb1c7fddaafdf28e510bbfe59fdb5107c67b3 Mon Sep 17 00:00:00 2001 From: programmercarl <826123027@qq.com> Date: Fri, 18 Aug 2023 09:35:21 +0800 Subject: [PATCH] Update --- problems/0102.二叉树的层序遍历.md | 2 +- problems/0236.二叉树的最近公共祖先.md | 2 +- problems/0977.有序数组的平方.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/problems/0102.二叉树的层序遍历.md b/problems/0102.二叉树的层序遍历.md index ce9a247c..51d030e7 100644 --- a/problems/0102.二叉树的层序遍历.md +++ b/problems/0102.二叉树的层序遍历.md @@ -18,7 +18,7 @@ * [102.二叉树的层序遍历](https://leetcode.cn/problems/binary-tree-level-order-traversal/) * [107.二叉树的层次遍历II](https://leetcode.cn/problems/binary-tree-level-order-traversal-ii/) * [199.二叉树的右视图](https://leetcode.cn/problems/binary-tree-right-side-view/) -* [637.二叉树的层平均值](https://leetcode.cn/problems/binary-tree-right-side-view/) +* [637.二叉树的层平均值](https://leetcode.cn/problems/average-of-levels-in-binary-tree/) * [429.N叉树的层序遍历](https://leetcode.cn/problems/n-ary-tree-level-order-traversal/) * [515.在每个树行中找最大值](https://leetcode.cn/problems/find-largest-value-in-each-tree-row/) * [116.填充每个节点的下一个右侧节点指针](https://leetcode.cn/problems/populating-next-right-pointers-in-each-node/) diff --git a/problems/0236.二叉树的最近公共祖先.md b/problems/0236.二叉树的最近公共祖先.md index 9db7409e..edb5ea3e 100644 --- a/problems/0236.二叉树的最近公共祖先.md +++ b/problems/0236.二叉树的最近公共祖先.md @@ -133,7 +133,7 @@ left与right的逻辑处理; // 中 ![236.二叉树的最近公共祖先](https://code-thinking-1253855093.file.myqcloud.com/pics/2021020415105872.png) -就像图中一样直接返回7,多美滋滋。 +就像图中一样直接返回7。 但事实上还要遍历根节点右子树(即使此时已经找到了目标节点了),也就是图中的节点4、15、20。 diff --git a/problems/0977.有序数组的平方.md b/problems/0977.有序数组的平方.md index 4bee585b..5bdbcbc7 100644 --- a/problems/0977.有序数组的平方.md +++ b/problems/0977.有序数组的平方.md @@ -30,7 +30,7 @@ ### 暴力排序 -最直观的想法,莫过于:每个数平方之后,排个序,美滋滋,代码如下: +最直观的想法,莫过于:每个数平方之后,排个序,代码如下: ```CPP class Solution {