We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7330d01 commit 2cb07abCopy full SHA for 2cb07ab
thinkings/slide-window.md
@@ -49,6 +49,20 @@
49
50
## 模板代码
51
52
+### 伪代码
53
+```
54
+初始化慢指针 = 0
55
+初始化 ans
56
+
57
+for 快指针 in 可迭代集合
58
+ 更新窗口内信息
59
+ while 窗口内不符合题意
60
+ 扩展或者收缩窗口
61
+ 慢指针移动
62
+返回 ans
63
64
+### 代码
65
66
以下是 209 题目的代码,使用 Python 编写,大家意会即可。
67
68
```python
@@ -82,4 +96,4 @@ class Solution:
82
96
83
97
## 扩展阅读
84
98
85
-- [LeetCode Sliding Window Series Discussion](https://leetcode.com/problems/binary-subarrays-with-sum/discuss/186683/)
99
+- [LeetCode Sliding Window Series Discussion](https://leetcode.com/problems/binary-subarrays-with-sum/discuss/186683/)
0 commit comments