From 451b02dd5d6986df59483ee9f2444acab5d6abe2 Mon Sep 17 00:00:00 2001
From: Alvinn <138186772+fubugun@users.noreply.github.com>
Date: Mon, 9 Dec 2024 16:56:47 +0800
Subject: [PATCH 1/5] =?UTF-8?q?Update=200236.=E4=BA=8C=E5=8F=89=E6=A0=91?=
=?UTF-8?q?=E7=9A=84=E6=9C=80=E8=BF=91=E5=85=AC=E5=85=B1=E7=A5=96=E5=85=88?=
=?UTF-8?q?.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
problems/0236.二叉树的最近公共祖先.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/problems/0236.二叉树的最近公共祖先.md b/problems/0236.二叉树的最近公共祖先.md
index 8572ec2d..8cd505a8 100644
--- a/problems/0236.二叉树的最近公共祖先.md
+++ b/problems/0236.二叉树的最近公共祖先.md
@@ -45,7 +45,7 @@
那么二叉树如何可以自底向上查找呢?
-回溯啊,二叉树回溯的过程就是从低到上。
+回溯啊,二叉树回溯的过程就是从底到上。
后序遍历(左右中)就是天然的回溯过程,可以根据左右子树的返回值,来处理中节点的逻辑。
From 0763f4b2fe5be95c9105c844e818759d44bfc745 Mon Sep 17 00:00:00 2001
From: Alvinn <138186772+fubugun@users.noreply.github.com>
Date: Mon, 9 Dec 2024 16:58:02 +0800
Subject: [PATCH 2/5] =?UTF-8?q?Update=200019.=E5=88=A0=E9=99=A4=E9=93=BE?=
=?UTF-8?q?=E8=A1=A8=E7=9A=84=E5=80=92=E6=95=B0=E7=AC=ACN=E4=B8=AA?=
=?UTF-8?q?=E8=8A=82=E7=82=B9.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
problems/0019.删除链表的倒数第N个节点.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/problems/0019.删除链表的倒数第N个节点.md b/problems/0019.删除链表的倒数第N个节点.md
index f0ef2366..fafef1f2 100644
--- a/problems/0019.删除链表的倒数第N个节点.md
+++ b/problems/0019.删除链表的倒数第N个节点.md
@@ -58,7 +58,7 @@
* fast和slow同时移动,直到fast指向末尾,如题:
-
+//图片中有错别词:应该将“只到”改为“直到”
* 删除slow指向的下一个节点,如图:
From d3dc9f51b7569329d2688eec3d0c23f457c18e02 Mon Sep 17 00:00:00 2001
From: Alvinn <138186772+fubugun@users.noreply.github.com>
Date: Mon, 9 Dec 2024 17:01:20 +0800
Subject: [PATCH 3/5] =?UTF-8?q?Update=20=E8=B4=AA=E5=BF=83=E7=AE=97?=
=?UTF-8?q?=E6=B3=95=E7=90=86=E8=AE=BA=E5=9F=BA=E7=A1=80.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
problems/贪心算法理论基础.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/problems/贪心算法理论基础.md b/problems/贪心算法理论基础.md
index f042c0ac..6fde2dbb 100644
--- a/problems/贪心算法理论基础.md
+++ b/problems/贪心算法理论基础.md
@@ -78,7 +78,7 @@
* 求解每一个子问题的最优解
* 将局部最优解堆叠成全局最优解
-这个四步其实过于理论化了,我们平时在做贪心类的题目 很难去按照这四步去思考,真是有点“鸡肋”。
+这个四步其实过于理论化了,我们平时在做贪心类的题目时,如果按照这四步去思考,真是有点“鸡肋”。
做题的时候,只要想清楚 局部最优 是什么,如果推导出全局最优,其实就够了。
From a28c40a8bcbb068c9d2f9f4b902322ce04e888ef Mon Sep 17 00:00:00 2001
From: Alvinn <138186772+fubugun@users.noreply.github.com>
Date: Mon, 9 Dec 2024 17:06:28 +0800
Subject: [PATCH 4/5] =?UTF-8?q?Update=2020201107=E5=9B=9E=E6=BA=AF?=
=?UTF-8?q?=E5=91=A8=E6=9C=AB=E6=80=BB=E7=BB=93.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
problems/周总结/20201107回溯周末总结.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/problems/周总结/20201107回溯周末总结.md b/problems/周总结/20201107回溯周末总结.md
index 2d20a197..7e333c76 100644
--- a/problems/周总结/20201107回溯周末总结.md
+++ b/problems/周总结/20201107回溯周末总结.md
@@ -75,7 +75,7 @@ for (int i = startIndex; i < candidates.size() && sum + candidates[i] <= target;
除了这些难点,**本题还有细节,例如:切割过的地方不能重复切割所以递归函数需要传入i + 1**。
-所以本题应该是一个道hard题目了。
+所以本题应该是一道hard题目了。
**本题的树形结构中,和代码的逻辑有一个小出入,已经判断不是回文的子串就不会进入递归了,纠正如下:**
From c6f44808a37f88bdb5164170042505ceb1d228a0 Mon Sep 17 00:00:00 2001
From: Alvinn <138186772+fubugun@users.noreply.github.com>
Date: Mon, 9 Dec 2024 17:15:25 +0800
Subject: [PATCH 5/5] =?UTF-8?q?Update=200332.=E9=87=8D=E6=96=B0=E5=AE=89?=
=?UTF-8?q?=E6=8E=92=E8=A1=8C=E7=A8=8B.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
problems/0332.重新安排行程.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/problems/0332.重新安排行程.md b/problems/0332.重新安排行程.md
index ed8149d0..78e14074 100644
--- a/problems/0332.重新安排行程.md
+++ b/problems/0332.重新安排行程.md
@@ -172,7 +172,7 @@ if (result.size() == ticketNum + 1) {
回溯的过程中,如何遍历一个机场所对应的所有机场呢?
-这里刚刚说过,在选择映射函数的时候,不能选择`unordered_map> targets`, 因为一旦有元素增删multiset的迭代器就会失效,当然可能有牛逼的容器删除元素迭代器不会失效,这里就不在讨论了。
+这里刚刚说过,在选择映射函数的时候,不能选择`unordered_map> targets`, 因为一旦有元素增删multiset的迭代器就会失效,当然可能有牛逼的容器删除元素迭代器不会失效,这里就不再讨论了。
**可以说本题既要找到一个对数据进行排序的容器,而且还要容易增删元素,迭代器还不能失效**。