Skip to content

Commit 390a31e

Browse files
committed
docs: fix typo
1 parent a943f3b commit 390a31e

File tree

1 file changed

+1
-1
lines changed
  • solution/0003.Longest Substring Without Repeating Characters

1 file changed

+1
-1
lines changed

solution/0003.Longest Substring Without Repeating Characters/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Solution {
4242
while (q < len) {
4343
if (map.containsKey(chars[q])) {
4444
// 防止p指针回溯,导致计算到重复字符的长度
45-
// eg. abba,当p指向最右的a时,若简单把p赋为map.get(chars[q] + 1),则出现指针回溯
45+
// eg. abba,当q指向最右的a时,若简单把p赋为map.get(chars[q] + 1),则出现指针回溯
4646
p = Math.max(p, map.get(chars[q]) + 1);
4747
}
4848
map.put(chars[q], q);

0 commit comments

Comments
 (0)