update list&tree

This commit is contained in:
ranwenjie
2021-12-22 17:12:08 +08:00
parent 3cc2b2da12
commit 667624355c
10 changed files with 212 additions and 51 deletions
+3
View File
@@ -196,6 +196,8 @@ static int partition(int[] nums, int left, int right){
### 滑动窗口
双指针中有一类比较难的技巧就是`滑动窗口`
滑动窗口: 无重复字符的最长子串
```Java
@@ -205,6 +207,7 @@ public static int longestSubString(char[] s){
int res = 0; // 记录最长结果
Map<Character, Integer> window = new HashMap<Character, Integer>();
while (right < s.length) {
Character c = s[right];