diff --git a/README.md b/README.md index b2267b9..685dee1 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,7 @@ PDF 共两本,一本《labuladong 的算法秘籍》类似教材,帮你系 * [经典动态规划:0-1 背包问题](https://labuladong.github.io/article/fname.html?fname=背包问题) * [经典动态规划:子集背包问题](https://labuladong.github.io/article/fname.html?fname=背包子集) * [经典动态规划:完全背包问题](https://labuladong.github.io/article/fname.html?fname=背包零钱) - * [动态规划和回溯算法到底谁是谁爹?](https://labuladong.github.io/article/fname.html?fname=targetSum) + * [目标和:背包问题的变体](https://labuladong.github.io/article/fname.html?fname=targetSum) * [用动态规划玩游戏](https://labuladong.github.io/algo/) * [动态规划之最小路径和](https://labuladong.github.io/article/fname.html?fname=最小路径和) diff --git a/动态规划系列/LCS.md b/动态规划系列/LCS.md index 4c7bbb6..9819047 100644 --- a/动态规划系列/LCS.md +++ b/动态规划系列/LCS.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/动态规划之KMP字符匹配算法.md b/动态规划系列/动态规划之KMP字符匹配算法.md index 6eb5630..d28a2dd 100644 --- a/动态规划系列/动态规划之KMP字符匹配算法.md +++ b/动态规划系列/动态规划之KMP字符匹配算法.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/动态规划之博弈问题.md b/动态规划系列/动态规划之博弈问题.md index ccba91e..153f318 100644 --- a/动态规划系列/动态规划之博弈问题.md +++ b/动态规划系列/动态规划之博弈问题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/动态规划之四键键盘.md b/动态规划系列/动态规划之四键键盘.md index f35931d..12061a2 100644 --- a/动态规划系列/动态规划之四键键盘.md +++ b/动态规划系列/动态规划之四键键盘.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/动态规划之正则表达.md b/动态规划系列/动态规划之正则表达.md index f7c3118..1911808 100644 --- a/动态规划系列/动态规划之正则表达.md +++ b/动态规划系列/动态规划之正则表达.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/动态规划设计:最长递增子序列.md b/动态规划系列/动态规划设计:最长递增子序列.md index f76f7f9..f548de6 100644 --- a/动态规划系列/动态规划设计:最长递增子序列.md +++ b/动态规划系列/动态规划设计:最长递增子序列.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/动态规划详解进阶.md b/动态规划系列/动态规划详解进阶.md index 50a0f64..aa4dbb8 100644 --- a/动态规划系列/动态规划详解进阶.md +++ b/动态规划系列/动态规划详解进阶.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/单词拼接.md b/动态规划系列/单词拼接.md index b11c1e8..175e4cf 100644 --- a/动态规划系列/单词拼接.md +++ b/动态规划系列/单词拼接.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/团灭股票问题.md b/动态规划系列/团灭股票问题.md index 94b80fb..b922d6f 100644 --- a/动态规划系列/团灭股票问题.md +++ b/动态规划系列/团灭股票问题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/子序列问题模板.md b/动态规划系列/子序列问题模板.md index 22a91f5..e94ac46 100644 --- a/动态规划系列/子序列问题模板.md +++ b/动态规划系列/子序列问题模板.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/抢房子.md b/动态规划系列/抢房子.md index 0e1ba12..13efd98 100644 --- a/动态规划系列/抢房子.md +++ b/动态规划系列/抢房子.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/最优子结构.md b/动态规划系列/最优子结构.md index 477e193..bcfc3e1 100644 --- a/动态规划系列/最优子结构.md +++ b/动态规划系列/最优子结构.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/状态压缩技巧.md b/动态规划系列/状态压缩技巧.md index f239874..fa91c97 100644 --- a/动态规划系列/状态压缩技巧.md +++ b/动态规划系列/状态压缩技巧.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/编辑距离.md b/动态规划系列/编辑距离.md index d6629e8..563da73 100644 --- a/动态规划系列/编辑距离.md +++ b/动态规划系列/编辑距离.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** @@ -344,8 +344,8 @@ class Node { 引用本文的文章 - [动态规划之子序列问题解题模板](https://labuladong.github.io/article/fname.html?fname=子序列问题模板) - - [动态规划和回溯算法到底谁是谁爹?](https://labuladong.github.io/article/fname.html?fname=targetSum) - [最优子结构原理和 dp 数组遍历方向](https://labuladong.github.io/article/fname.html?fname=最优子结构) + - [目标和:背包问题的变体](https://labuladong.github.io/article/fname.html?fname=targetSum)
diff --git a/动态规划系列/背包问题.md b/动态规划系列/背包问题.md index a64df33..a4d7d39 100644 --- a/动态规划系列/背包问题.md +++ b/动态规划系列/背包问题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** @@ -166,8 +166,8 @@ int knapsack(int W, int N, int[] wt, int[] val) {
引用本文的文章 - - [动态规划和回溯算法到底谁是谁爹?](https://labuladong.github.io/article/fname.html?fname=targetSum) - [扫描线技巧:安排会议室](https://labuladong.github.io/article/fname.html?fname=安排会议室) + - [目标和:背包问题的变体](https://labuladong.github.io/article/fname.html?fname=targetSum) - [经典动态规划:子集背包问题](https://labuladong.github.io/article/fname.html?fname=背包子集) - [经典动态规划:完全背包问题](https://labuladong.github.io/article/fname.html?fname=背包零钱) - [经典回溯算法:集合划分问题](https://labuladong.github.io/article/fname.html?fname=集合划分) diff --git a/动态规划系列/贪心算法之区间调度问题.md b/动态规划系列/贪心算法之区间调度问题.md index 993d1c6..0c5eaba 100644 --- a/动态规划系列/贪心算法之区间调度问题.md +++ b/动态规划系列/贪心算法之区间调度问题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/高楼扔鸡蛋问题.md b/动态规划系列/高楼扔鸡蛋问题.md index af336c5..93b73f8 100644 --- a/动态规划系列/高楼扔鸡蛋问题.md +++ b/动态规划系列/高楼扔鸡蛋问题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/动态规划系列/魔塔.md b/动态规划系列/魔塔.md index 070c657..2012de8 100644 --- a/动态规划系列/魔塔.md +++ b/动态规划系列/魔塔.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/技术/linuxshell.md b/技术/linuxshell.md index 4f716aa..354daa6 100644 --- a/技术/linuxshell.md +++ b/技术/linuxshell.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/技术/linux进程.md b/技术/linux进程.md index 45221b0..915aafd 100644 --- a/技术/linux进程.md +++ b/技术/linux进程.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/技术/redis入侵.md b/技术/redis入侵.md index 2bec40c..ae8433b 100644 --- a/技术/redis入侵.md +++ b/技术/redis入侵.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/技术/session和cookie.md b/技术/session和cookie.md index bc4e566..23e1c5f 100644 --- a/技术/session和cookie.md +++ b/技术/session和cookie.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/技术/刷题技巧.md b/技术/刷题技巧.md index e24cdf5..69097d5 100644 --- a/技术/刷题技巧.md +++ b/技术/刷题技巧.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** @@ -43,232 +43,6 @@ 接下来介绍几个很实用的「投机取巧」的办法和调试技巧,全方位提高你通过笔试的概率。 -### 避实就虚 - -大家也知道,大部分笔试题目都需要你自己来处理输入数据,然后让程序打印输出。判题的底层原理是,把你程序的输出用 Linux 重定向符 `>` 写到文件里面,然后比较你的输出和正确答案是否相同。 - -那么有的问题难点就变得形同虚设,我们可以偷工减料,举个简化的例子,假设题目说给你输入一串用空格分隔的字符,告诉你这代表一个单链表,请你把这个单链表翻转,并且强调,一定要把输入的数字转化成单链表之后再翻转哦! - -那你怎么做?真就自己定义一个 `ListNode` 单链表节点类,然后再写代码把输入转化成一个单链表,然后再用让人头晕的指针操作去老老实实翻转单链表? - -搞清楚我们是来 AC 题目的,不是来学习算法思维的,判题系统是无法准确判断的算法逻辑的,只能判断你的输出是否正确。所以取巧的做法是直接把输入存到数组里,然后用 [双指针技巧](https://labuladong.github.io/article/fname.html?fname=双指针技巧) 几行代码给它翻转了,然后打印出来完事儿。 - -我就见过不少这种题目,比如题目说输入的是一个单链表,让我分组翻转链表,而且还特别强调要用递归实现,就是我们前文 [K 个一组翻转链表](https://labuladong.github.io/article/fname.html?fname=k个一组反转链表) 的算法。嗯,如果用数组进行翻转,两分钟就写出来了,嘿嘿。 - -还有我们前文 [扁平化嵌套列表](https://labuladong.github.io/article/fname.html?fname=nestInteger) 讲到的题目,思路很巧妙,但是在笔试中遇到时,输入是一个形如 `[1,[4,[6]]]` 的字符串,那直接用正则表达式把数字抽出来,就是一个扁平化的列表了…… - -### 巧用随机数 - -再说一个鸡贼的技巧,注意那些输出为「二值」的题目,二值就是类似布尔值,或者 0 和 1 这种组合有限的。 - -比如说很多题目是这样,巴拉巴拉给你说一堆条件,然后问你输入的数据能不能达成这些条件,如果能的话请输出 `YES`,不能的话输出 `NO`。 - -如果你会做当然好,如果不会做怎么办? - -首先这样提交一下: - - -```java -public class Main { - public static void main(String[] args) { - System.out.println("YES"); - } -} -``` - -看下 case 通过率,假设是 60%,那么说明结果为 `YES` 有 60% 的概率,所以可以这样写代码: - - -```java -public class Main { - public static void main(String[] args) { - // 60% 的概率输出 YES,40% 的概率输出 NO - System.out.println((new Random().nextInt() % 100) < 60 ? "YES" : "NO"); - } -} -``` - -嘿嘿,这题你可以不会,但是一定要在力所能及的范围内做到极致! - -### 编程语言的选择 - -仅从做算法题的角度来说,我个人比较建议使用 Java 作为笔试的编程语言。因为 JetBrain 家的 IntelliJ 实在是太香了,相比其他语言的编辑器,不仅有 `psvm` 和 `sout` 这样的快捷命令(你要是连这都不知道,赶紧面壁去),而且可以帮你检查出很多笔误,比如说 `while` 循环里面忘记递增变量,或者 `return` 语句错写到循环里这种由于疏忽所导致的问题。 - -C++ 也还行,但是我觉得没有 Java 好用。我印象中 C++ 连个分割字符串的 `split` 函数都没有,光这点我就不想用 C++ 了…… - -还有一点,C++ 代码对时间的限制高,别的语言时间限制 4000ms,C++ 限制 2000ms,我觉得挺吃亏的。怪不得看别人用 C++ 写算法,为了提高速度,都不用标准库的 `vector` 容器,非要用原始的 `int[]` 数组,我看着都头疼。 - -Python 的话我刷题用的比较少,因为我不太喜欢用动态语言,不好调试。不过这个语言确实提供很多实用的功能,如果你深谙 Python 的套路,可以在某些时候投机取巧。比如说我们前文写到的 [表达式求值算法](https://labuladong.github.io/article/fname.html?fname=实现计算器) 是一个困难级别的算法,但如果用 Python 内置的 `exec` 函数,直接就能算出答案。 - -这个在笔试里肯定是很占便宜的,因为之前说了,我们要的是结果,没人在乎你是怎么得到结果的。 - -### 解法代码分层 - -代码分层应该算是一种比较好的习惯,可以增加写代码的速度和降低调试的难度。 - -简单说就是,不要把所有代码都写在 `main` 函数里面,我一直使用的套路是,`main` 函数负责接收数据,加一个 `solution` 函数负责统一处理数据和输出答案,然后再用诸如 `backtrack` 这样一个函数处理具体的算法逻辑。 - -举个例子,比如说一道题,我决定用带备忘录的动态规划求解,代码的大致结构是这样: - - -```java -public class Main { - public static void main(String[] args) { - Scanner scanner = new Scanner(System.in); - // 主要负责接收数据 - int N = scanner.nextInt(); - int[][] orders = new int[N][2]; - for (int i = 0; i < N; i++) { - orders[i][0] = scanner.nextInt(); - orders[i][1] = scanner.nextInt(); - } - // 委托 solution 进行求解 - solution(orders); - } - - static void solution(int[][] orders) { - // 排除一些基本的边界情况 - if (orders.length == 0) { - System.out.println("None"); - return; - } - // 委托 dp 函数执行具体的算法逻辑 - int res = dp(orders, 0); - // 负责输出结果 - System.out.println(res); - } - - // 备忘录 - static HashMap memo = new HashMap<>(); - static int dp(int[][] orders, int start) { - // 具体的算法逻辑 - } -} -``` - -你看这样分层是不是很清楚,每个函数都有自己主要负责的任务,如果哪里出了问题,你也容易 debug。 - -倒不是说要把代码写得多规范,至于 `private` 这种约束免了也无妨,变量用拼音命名也 OK,关键是别把代码直接全写到 `main` 函数里面,真的乱,不出错也罢,一旦出错,估计要花一番功夫调试了,找不到问题乱了阵脚,那是要尽量避免的。 - -### 如何给算法 debug - -代码的错误是无法避免的,有时候可能整个思路都错了,有时候可能是某些细节问题,比如 `i` 和 `j` 写反了,这种问题怎么排查? - -我想一般的算法问题肯定不难排查,肉眼检查应该都没啥问题,再不济 `print` 打印一些关键变量的值,总能发现问题。 - -**比较让人头疼的的应该是递归算法的问题排查**。 - -如果没有一定的经验,函数递归的过程很难被正确理解,所以这里就重点讲讲如何高效 debug 递归算法。 - -有的读者可能会说,把算法 copy 到 IDE 里面,然后打断点一步步跟着走不就行了吗? - -这个方法肯定是可以的,但是之前的文章多次说过,递归函数最好从一个全局的角度理解,而不要跳进具体的细节。 - -如果你对递归还不够熟悉,没有一个全局的视角,这种一步步打断点的方式也容易把人绕进去。 - -**我的建议是直接在递归函数内部打印关键值,配合缩进,直观地观察递归函数执行情况**。 - -最能提升我们 debug 效率的是缩进,除了解法函数,我们新定义一个函数 `printIndent` 和一个全局变量 `count`: - - -```cpp -// 全局变量,记录递归函数的递归层数 -int count = 0; - -// 输入 n,打印 n 个 tab 缩进 -void printIndent(int n) { - for (int i = 0; i < n; i++) { - printf(" "); - } -} -``` - -接下来,套路来了: - -**在递归函数的开头,调用 `printIndent(count++)` 并打印关键变量;然后在所有 `return` 语句之前调用 `printIndent(--count)` 并打印返回值**。 - -举个具体的例子,比如说上篇文章 [练琴时悟出的一个动态规划算法](https://labuladong.github.io/article/fname.html?fname=转盘) 中实现了一个递归的 `dp` 函数,大致的结构如下: - - -```cpp -int dp(string& ring, int i, string& key, int j) { - /* base case */ - if (j == key.size()) { - return 0; - } - - /* 状态转移 */ - int res = INT_MAX; - for (int k : charToIndex[key[j]]) { - res = min(res, dp(ring, j, key, i + 1)); - } - - return res; -} -``` - -这个递归的 `dp` 函数在我进行了 debug 之后,变成了这样: - - -```cpp -int count = 0; -void printIndent(int n) { - for (int i = 0; i < n; i++) { - printf(" "); - } -} - -int dp(string& ring, int i, string& key, int j) { - // printIndent(count++); - // printf("i = %d, j = %d\n", i, j); - - if (j == key.size()) { - // printIndent(--count); - // printf("return 0\n"); - return 0; - } - - int res = INT_MAX; - for (int k : charToIndex[key[j]]) { - res = min(res, dp(ring, j, key, i + 1)); - } - - // printIndent(--count); - // printf("return %d\n", res); - return res; -} -``` - -**就是在函数开头和所有 `return` 语句对应的地方加上一些打印代码**。 - -如果去掉注释,执行一个测试用例,输出如下: - -![](https://labuladong.github.io/pictures/刷题技巧/1.jpg) - -这样,我们通过对比对应的缩进就能知道每次递归时输入的关键参数 `i, j` 的值,以及每次递归调用返回的结果是多少。 - -**最重要的是,这样可以比较直观地看出递归过程,你有没有发现这就是一棵递归树**? - -![](https://labuladong.github.io/pictures/刷题技巧/2.jpg) - -前文 [动态规划套路详解](https://labuladong.github.io/article/fname.html?fname=动态规划详解进阶) 说过,理解递归函数最重要的就是画出递归树,这样打印一下,连递归树都不用自己画了,而且还能清晰地看出每次递归的返回值。 - -**可以说,这是对刷题「幸福感」提升最大的一个小技巧,比 IDE 打断点要高效**。 - -### 考前复习策略 - -考前就别和某一道算法题死磕了,不划算。 - -应该尽可能多的看各种各样的题目,思考五分钟,想不出来解法的话直接看别人的答案。看懂思路就行了,甚至自己写一遍都没必要,因为比较浪费时间。 - -笔试的时候最怕的是没思路,所以把各种题型都过目一下,起码心里不会慌,只要有思路,平均一道题二三十分钟搞定还是不难的。 - -前面不是说了么,没有什么问题是暴力穷举解决不了的,直接用 [回溯算法套路框架](https://labuladong.github.io/article/fname.html?fname=回溯算法详解修订版) 硬上,大不了加个备忘录,不就成 [动态规划套路框架](https://labuladong.github.io/article/fname.html?fname=动态规划详解进阶) 了么,再大不了这题我不做了么,暴力过上 60% 的 case 也挺 OK 的。 - -别的不多说了,套路这个东西,说来简单,一点就透,但问题是不点就不透。本文我简单介绍了几个笔试算法的技巧,各位好好品味~ - -最后,请秋招的同学多向身边的朋友推荐 labuladong 公众号。算法真的没那么难,这一切只是手段而已,过算法笔试拿 offer 才是目的。为了达到目的,套路是必须的,可以少走很多弯路,你的朋友会感谢你的,我也会感谢你的😏 -
@@ -285,6 +59,6 @@ int dp(string& ring, int i, string& key, int j) { **_____________** -**《labuladong 的算法小抄》已经出版,关注公众号查看详情;后台回复关键词「**进群**」可加入算法群;回复「**全家桶**」可下载配套 PDF 和刷题全家桶**: +本文为会员内容,请扫码关注公众号或 [点这里](https://appktavsiei5995.pc.xiaoe-tech.com/detail/i_64a923dde4b007b201a392d0/1) 查看: -![](https://labuladong.github.io/pictures/souyisou2.png) \ No newline at end of file +![](https://labuladong.github.io/pictures/qrcode.jpg) \ No newline at end of file diff --git a/技术/在线练习平台.md b/技术/在线练习平台.md index 123b8d8..21477c2 100644 --- a/技术/在线练习平台.md +++ b/技术/在线练习平台.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/技术/密码技术.md b/技术/密码技术.md index 2606adf..f671cea 100644 --- a/技术/密码技术.md +++ b/技术/密码技术.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/BST1.md b/数据结构系列/BST1.md index 45d6aa7..0f2f91a 100644 --- a/数据结构系列/BST1.md +++ b/数据结构系列/BST1.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/BST2.md b/数据结构系列/BST2.md index 99f7f53..9c29cfe 100644 --- a/数据结构系列/BST2.md +++ b/数据结构系列/BST2.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/dijkstra算法.md b/数据结构系列/dijkstra算法.md index a51da66..cb35475 100644 --- a/数据结构系列/dijkstra算法.md +++ b/数据结构系列/dijkstra算法.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/二叉堆详解实现优先级队列.md b/数据结构系列/二叉堆详解实现优先级队列.md index 13ad1e9..95bd3ad 100644 --- a/数据结构系列/二叉堆详解实现优先级队列.md +++ b/数据结构系列/二叉堆详解实现优先级队列.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/二叉树总结.md b/数据结构系列/二叉树总结.md index d6b0a53..eb71e51 100644 --- a/数据结构系列/二叉树总结.md +++ b/数据结构系列/二叉树总结.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/二叉树系列1.md b/数据结构系列/二叉树系列1.md index 729f297..edecc6f 100644 --- a/数据结构系列/二叉树系列1.md +++ b/数据结构系列/二叉树系列1.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/二叉树系列2.md b/数据结构系列/二叉树系列2.md index 4500776..1d27d37 100644 --- a/数据结构系列/二叉树系列2.md +++ b/数据结构系列/二叉树系列2.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/单调栈.md b/数据结构系列/单调栈.md index f8decd4..09f52a3 100644 --- a/数据结构系列/单调栈.md +++ b/数据结构系列/单调栈.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/单调队列.md b/数据结构系列/单调队列.md index 372c13e..cdb30c7 100644 --- a/数据结构系列/单调队列.md +++ b/数据结构系列/单调队列.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/图.md b/数据结构系列/图.md index 7667c6e..9d5d9c5 100644 --- a/数据结构系列/图.md +++ b/数据结构系列/图.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/实现计算器.md b/数据结构系列/实现计算器.md index 8c28a3b..760dfe1 100644 --- a/数据结构系列/实现计算器.md +++ b/数据结构系列/实现计算器.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/拓扑排序.md b/数据结构系列/拓扑排序.md index 5c6cc1f..66bbe72 100644 --- a/数据结构系列/拓扑排序.md +++ b/数据结构系列/拓扑排序.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/设计Twitter.md b/数据结构系列/设计Twitter.md index a6a2f0f..9a30425 100644 --- a/数据结构系列/设计Twitter.md +++ b/数据结构系列/设计Twitter.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/递归反转链表的一部分.md b/数据结构系列/递归反转链表的一部分.md index 6af7b96..f82b25b 100644 --- a/数据结构系列/递归反转链表的一部分.md +++ b/数据结构系列/递归反转链表的一部分.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/数据结构系列/队列实现栈栈实现队列.md b/数据结构系列/队列实现栈栈实现队列.md index caf14b6..53ea524 100644 --- a/数据结构系列/队列实现栈栈实现队列.md +++ b/数据结构系列/队列实现栈栈实现队列.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/BFS框架.md b/算法思维系列/BFS框架.md index 1492135..761eb76 100644 --- a/算法思维系列/BFS框架.md +++ b/算法思维系列/BFS框架.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/BFS解决滑动拼图.md b/算法思维系列/BFS解决滑动拼图.md index 577f36e..6bd5818 100644 --- a/算法思维系列/BFS解决滑动拼图.md +++ b/算法思维系列/BFS解决滑动拼图.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/UnionFind算法详解.md b/算法思维系列/UnionFind算法详解.md index 6abe23f..9640195 100644 --- a/算法思维系列/UnionFind算法详解.md +++ b/算法思维系列/UnionFind算法详解.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/二分查找详解.md b/算法思维系列/二分查找详解.md index 963debd..b86531e 100644 --- a/算法思维系列/二分查找详解.md +++ b/算法思维系列/二分查找详解.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/几个反直觉的概率问题.md b/算法思维系列/几个反直觉的概率问题.md index 3f85895..9f1e812 100644 --- a/算法思维系列/几个反直觉的概率问题.md +++ b/算法思维系列/几个反直觉的概率问题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/前缀和技巧.md b/算法思维系列/前缀和技巧.md index 4796670..04731b4 100644 --- a/算法思维系列/前缀和技巧.md +++ b/算法思维系列/前缀和技巧.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/双指针技巧.md b/算法思维系列/双指针技巧.md index ce56756..518b715 100644 --- a/算法思维系列/双指针技巧.md +++ b/算法思维系列/双指针技巧.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/回溯算法详解修订版.md b/算法思维系列/回溯算法详解修订版.md index 1e16ab2..69d4bc9 100644 --- a/算法思维系列/回溯算法详解修订版.md +++ b/算法思维系列/回溯算法详解修订版.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** @@ -404,7 +404,6 @@ def backtrack(...): - [东哥带你刷二叉树(纲领篇)](https://labuladong.github.io/article/fname.html?fname=二叉树总结) - [分治算法详解:运算优先级](https://labuladong.github.io/article/fname.html?fname=分治算法) - [前缀树算法模板秒杀五道算法题](https://labuladong.github.io/article/fname.html?fname=trie) - - [动态规划和回溯算法到底谁是谁爹?](https://labuladong.github.io/article/fname.html?fname=targetSum) - [动态规划和回溯算法的思维转换](https://labuladong.github.io/article/fname.html?fname=单词拼接) - [回溯算法最佳实践:括号生成](https://labuladong.github.io/article/fname.html?fname=合法括号生成) - [回溯算法最佳实践:解数独](https://labuladong.github.io/article/fname.html?fname=sudoku) @@ -414,6 +413,7 @@ def backtrack(...): - [我的刷题心得](https://labuladong.github.io/article/fname.html?fname=算法心得) - [本站简介](https://labuladong.github.io/article/fname.html?fname=home) - [环检测及拓扑排序算法](https://labuladong.github.io/article/fname.html?fname=拓扑排序) + - [目标和:背包问题的变体](https://labuladong.github.io/article/fname.html?fname=targetSum) - [算法学习和心流体验](https://labuladong.github.io/article/fname.html?fname=心流) - [算法笔试「骗分」套路](https://labuladong.github.io/article/fname.html?fname=刷题技巧) - [经典动态规划:戳气球](https://labuladong.github.io/article/fname.html?fname=扎气球) diff --git a/算法思维系列/字符串乘法.md b/算法思维系列/字符串乘法.md index 37702ee..c0ae51e 100644 --- a/算法思维系列/字符串乘法.md +++ b/算法思维系列/字符串乘法.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/学习数据结构和算法的高效方法.md b/算法思维系列/学习数据结构和算法的高效方法.md index 74a747f..510e2f7 100644 --- a/算法思维系列/学习数据结构和算法的高效方法.md +++ b/算法思维系列/学习数据结构和算法的高效方法.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** @@ -362,7 +362,6 @@ N 叉树的遍历框架,找出来了吧?你说,树这种结构重不重要 - [二叉树的递归转迭代的代码框架](https://labuladong.github.io/article/fname.html?fname=迭代遍历二叉树) - [二叉树(递归)专题课](https://labuladong.github.io/article/fname.html?fname=tree课程简介) - [前缀树算法模板秒杀五道算法题](https://labuladong.github.io/article/fname.html?fname=trie) - - [动态规划和回溯算法到底谁是谁爹?](https://labuladong.github.io/article/fname.html?fname=targetSum) - [回溯算法秒杀所有排列/组合/子集问题](https://labuladong.github.io/article/fname.html?fname=子集排列组合) - [回溯算法解题套路框架](https://labuladong.github.io/article/fname.html?fname=回溯算法详解修订版) - [图论基础及遍历算法](https://labuladong.github.io/article/fname.html?fname=图) @@ -373,6 +372,7 @@ N 叉树的遍历框架,找出来了吧?你说,树这种结构重不重要 - [我的刷题心得](https://labuladong.github.io/article/fname.html?fname=算法心得) - [本站简介](https://labuladong.github.io/article/fname.html?fname=home) - [环检测及拓扑排序算法](https://labuladong.github.io/article/fname.html?fname=拓扑排序) + - [目标和:背包问题的变体](https://labuladong.github.io/article/fname.html?fname=targetSum) - [算法学习和心流体验](https://labuladong.github.io/article/fname.html?fname=心流) - [算法时空复杂度分析实用指南](https://labuladong.github.io/article/fname.html?fname=时间复杂度) - [题目不让我干什么,我偏要干什么](https://labuladong.github.io/article/fname.html?fname=nestInteger) diff --git a/算法思维系列/差分技巧.md b/算法思维系列/差分技巧.md index 56edf9a..b6c15eb 100644 --- a/算法思维系列/差分技巧.md +++ b/算法思维系列/差分技巧.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/常用的位操作.md b/算法思维系列/常用的位操作.md index 37d78ca..a344759 100644 --- a/算法思维系列/常用的位操作.md +++ b/算法思维系列/常用的位操作.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/洗牌算法.md b/算法思维系列/洗牌算法.md index 2ac9d4f..61060e7 100644 --- a/算法思维系列/洗牌算法.md +++ b/算法思维系列/洗牌算法.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/滑动窗口技巧进阶.md b/算法思维系列/滑动窗口技巧进阶.md index 4910b5c..756c75a 100644 --- a/算法思维系列/滑动窗口技巧进阶.md +++ b/算法思维系列/滑动窗口技巧进阶.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/烧饼排序.md b/算法思维系列/烧饼排序.md index c34c330..00aa546 100644 --- a/算法思维系列/烧饼排序.md +++ b/算法思维系列/烧饼排序.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/花式遍历.md b/算法思维系列/花式遍历.md index 11b77e9..ac335b1 100644 --- a/算法思维系列/花式遍历.md +++ b/算法思维系列/花式遍历.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/算法思维系列/集合划分.md b/算法思维系列/集合划分.md index f7b57da..08987a7 100644 --- a/算法思维系列/集合划分.md +++ b/算法思维系列/集合划分.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/LRU算法.md b/高频面试系列/LRU算法.md index d240956..9068b70 100644 --- a/高频面试系列/LRU算法.md +++ b/高频面试系列/LRU算法.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/k个一组反转链表.md b/高频面试系列/k个一组反转链表.md index 68b4354..ec8d54f 100644 --- a/高频面试系列/k个一组反转链表.md +++ b/高频面试系列/k个一组反转链表.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/一行代码解决的智力题.md b/高频面试系列/一行代码解决的智力题.md index 0c29ce9..20a91f3 100644 --- a/高频面试系列/一行代码解决的智力题.md +++ b/高频面试系列/一行代码解决的智力题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/二分查找判定子序列.md b/高频面试系列/二分查找判定子序列.md index fc913d9..e2a23ad 100644 --- a/高频面试系列/二分查找判定子序列.md +++ b/高频面试系列/二分查找判定子序列.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/二分运用.md b/高频面试系列/二分运用.md index da6cb3f..8545741 100644 --- a/高频面试系列/二分运用.md +++ b/高频面试系列/二分运用.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/判断回文链表.md b/高频面试系列/判断回文链表.md index 5c4fcab..6121e5a 100644 --- a/高频面试系列/判断回文链表.md +++ b/高频面试系列/判断回文链表.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/名人问题.md b/高频面试系列/名人问题.md index bd8af2f..df841b1 100644 --- a/高频面试系列/名人问题.md +++ b/高频面试系列/名人问题.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/子集排列组合.md b/高频面试系列/子集排列组合.md index cb38bcf..6762c7d 100644 --- a/高频面试系列/子集排列组合.md +++ b/高频面试系列/子集排列组合.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/安排会议室.md b/高频面试系列/安排会议室.md index 56c992a..428b88f 100644 --- a/高频面试系列/安排会议室.md +++ b/高频面试系列/安排会议室.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/岛屿题目.md b/高频面试系列/岛屿题目.md index 5b03190..17a5e34 100644 --- a/高频面试系列/岛屿题目.md +++ b/高频面试系列/岛屿题目.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/座位调度.md b/高频面试系列/座位调度.md index fb745f5..9c7587f 100644 --- a/高频面试系列/座位调度.md +++ b/高频面试系列/座位调度.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/打印素数.md b/高频面试系列/打印素数.md index 94b79f5..172911d 100644 --- a/高频面试系列/打印素数.md +++ b/高频面试系列/打印素数.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/接雨水.md b/高频面试系列/接雨水.md index 4e25c9c..44acdc2 100644 --- a/高频面试系列/接雨水.md +++ b/高频面试系列/接雨水.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/缺失和重复的元素.md b/高频面试系列/缺失和重复的元素.md index f7c4985..e2ff8cf 100644 --- a/高频面试系列/缺失和重复的元素.md +++ b/高频面试系列/缺失和重复的元素.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** diff --git a/高频面试系列/随机权重.md b/高频面试系列/随机权重.md index ed34c44..be6b715 100644 --- a/高频面试系列/随机权重.md +++ b/高频面试系列/随机权重.md @@ -9,7 +9,7 @@ ![](https://labuladong.github.io/pictures/souyisou1.png) -**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员![第 21 期打卡挑战](https://opedk.xet.tech/s/4ptSo2) 最后一天报名!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。** +**通知:[数据结构精品课](https://aep.h5.xeknow.com/s/1XJHEO) 和 [递归算法专题课](https://aep.xet.tech/s/3YGcq3) 限时附赠网站会员!另外,建议你在我的 [网站](https://labuladong.github.io/algo/) 学习文章,体验更好。**