This commit is contained in:
chefyuan
2021-03-20 12:32:33 +08:00
parent 77357249b5
commit 1fc9cabcf2
4 changed files with 12 additions and 6 deletions

View File

@@ -33,9 +33,7 @@
下面我们来看一下我们的动画模拟,一下就能看懂!
<img src="https://img-blog.csdnimg.cn/20210320092423565.gif" style="zoom:150%;" />
其实,我们只要把握两个重点即可,我们的 maxdeque 维护的是一个单调递减的双端队列,头部为当前窗口的最大值, mindeque 维护的是一个单调递增的双端队列,头部为窗口的最小值,即可。好啦我们一起看代码吧。

View File

@@ -22,7 +22,7 @@
*![螺旋矩阵](https://pic.leetcode-cn.com/1615813563-uUiWlF-file_1615813563382)*
![](https://img-blog.csdnimg.cn/img_convert/cfa0192601dcc185e77125adc35e1cc5.png)*

View File

@@ -13,7 +13,7 @@
[2, 3, 1, 0, 2, 5, 3]
输出2 或 3
**HashSet**
#### **HashSet**
**解析**
@@ -39,7 +39,7 @@ class Solution {
}
```
**原地置换**
#### **原地置换**
**解析**