update string

This commit is contained in:
ranwenjie
2021-11-29 01:30:30 +08:00
parent 6bfa22c411
commit 73a3097a6e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ public static boolean hasCycle(LinkNode head) {
滑动窗口: 无重复字符的最长子串
```Java
//如 ”abcabbcbb“ 输出 3
public static int longestSubString(char[] s){
int left = 0, right = 0;
int res = 0; // 记录最长结果