From 1fc9cabcf24e823120f6279603e6c243389de48b Mon Sep 17 00:00:00 2001 From: chefyuan Date: Sat, 20 Mar 2021 12:32:33 +0800 Subject: [PATCH] chefyuan --- README.md | 8 ++++++++ .../数组篇/leetcode1438绝对值不超过限制的最长子数组.md | 4 +--- gif-algorithm/数组篇/leetcode54螺旋矩阵.md | 2 +- gif-algorithm/数组篇/剑指offer3数组中重复的数.md | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4ec9666..685b97d 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,14 @@ - [【动画模拟】leetcode 27 移除元素](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode27%E7%A7%BB%E9%99%A4%E5%85%83%E7%B4%A0.md) - [【动画模拟】leetcode 41 缺失的第一个正数](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode41%E7%BC%BA%E5%A4%B1%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E6%AD%A3%E6%95%B0.md) - [【动画模拟】leetcode 487 最大连续 1 的个数](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode485%E6%9C%80%E5%A4%A7%E8%BF%9E%E7%BB%AD1%E7%9A%84%E4%B8%AA%E6%95%B0.md) +- [【动画模拟】leetcode 1052 爱生气的书店老板](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode1052%E7%88%B1%E7%94%9F%E6%B0%94%E7%9A%84%E4%B9%A6%E5%BA%97%E8%80%81%E6%9D%BF.md) +- [【动画模拟】leetcode 1438 绝对值不超过限制的最长子数组](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode1438%E7%BB%9D%E5%AF%B9%E5%80%BC%E4%B8%8D%E8%B6%85%E8%BF%87%E9%99%90%E5%88%B6%E7%9A%84%E6%9C%80%E9%95%BF%E5%AD%90%E6%95%B0%E7%BB%84.md) +- [【动画模拟】剑指offer 3 数组中重复的数字](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/%E5%89%91%E6%8C%87offer3%E6%95%B0%E7%BB%84%E4%B8%AD%E9%87%8D%E5%A4%8D%E7%9A%84%E6%95%B0.md) +- [【动画模拟】leetcode 219 数组中重复元素2](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode219%E6%95%B0%E7%BB%84%E4%B8%AD%E9%87%8D%E5%A4%8D%E5%85%83%E7%B4%A02.md) +- [【动画模拟】leetcode 560 和为K的子数组](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode560%E5%92%8C%E4%B8%BAK%E7%9A%84%E5%AD%90%E6%95%B0%E7%BB%84.md) +- [【绘图描述】leetcode 66 加一](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode66%E5%8A%A0%E4%B8%80.md) +- [【动画模拟】leetcode 75 颜色分类](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode75%E9%A2%9C%E8%89%B2%E5%88%86%E7%B1%BB.md) +- [【动画模拟】leetcode 54 螺旋矩阵](https://github.com/chefyuan/algorithm-base/blob/main/gif-algorithm/%E6%95%B0%E7%BB%84%E7%AF%87/leetcode54%E8%9E%BA%E6%97%8B%E7%9F%A9%E9%98%B5.md) ### 链表篇 diff --git a/gif-algorithm/数组篇/leetcode1438绝对值不超过限制的最长子数组.md b/gif-algorithm/数组篇/leetcode1438绝对值不超过限制的最长子数组.md index 483b76d..eec6717 100644 --- a/gif-algorithm/数组篇/leetcode1438绝对值不超过限制的最长子数组.md +++ b/gif-algorithm/数组篇/leetcode1438绝对值不超过限制的最长子数组.md @@ -33,9 +33,7 @@ 下面我们来看一下我们的动画模拟,一下就能看懂! - - - + 其实,我们只要把握两个重点即可,我们的 maxdeque 维护的是一个单调递减的双端队列,头部为当前窗口的最大值, mindeque 维护的是一个单调递增的双端队列,头部为窗口的最小值,即可。好啦我们一起看代码吧。 diff --git a/gif-algorithm/数组篇/leetcode54螺旋矩阵.md b/gif-algorithm/数组篇/leetcode54螺旋矩阵.md index 11e5a87..6068bac 100644 --- a/gif-algorithm/数组篇/leetcode54螺旋矩阵.md +++ b/gif-algorithm/数组篇/leetcode54螺旋矩阵.md @@ -22,7 +22,7 @@ -*![螺旋矩阵](https://pic.leetcode-cn.com/1615813563-uUiWlF-file_1615813563382)* +![](https://img-blog.csdnimg.cn/img_convert/cfa0192601dcc185e77125adc35e1cc5.png)* diff --git a/gif-algorithm/数组篇/剑指offer3数组中重复的数.md b/gif-algorithm/数组篇/剑指offer3数组中重复的数.md index 493b60f..96b278e 100644 --- a/gif-algorithm/数组篇/剑指offer3数组中重复的数.md +++ b/gif-algorithm/数组篇/剑指offer3数组中重复的数.md @@ -13,7 +13,7 @@ [2, 3, 1, 0, 2, 5, 3] 输出:2 或 3 -**HashSet** +#### **HashSet** **解析** @@ -39,7 +39,7 @@ class Solution { } ``` -**原地置换** +#### **原地置换** **解析**