Minimum Size Subarray Sum

This commit is contained in:
2022-11-29 18:25:47 +08:00
parent 1e65cff7e5
commit 80ee14486c
8 changed files with 184 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
- [二分查找](./bin_search.md)
- [移除元素](./remove_elements.md)
- [长度最小的子数组](./minimum_size_subarray_sum.md)
# 经典代码

View File

@@ -0,0 +1,20 @@
# 长度最小的子数组
当题目中含有:
- 数组
- 连续子数组
这两个关键词时,考虑使用非定长滑动窗口(即长度不固定的滑动窗口)
这种滑动窗口有两个关键:
- 起始指针,什么条件下移动
- 终止指针,什么条件下移动
想清楚这两个问题就可以解答了。
## 相关题目
- [209. 长度最小的子数组](https://leetcode.com/problems/minimum-size-subarray-sum/)
- [76. 最小覆盖子串](https://leetcode.com/problems/minimum-window-substring/)