Problem 3: Longest Substring Without Repeating Characters
https://leetcode.com/problems/longest-substring-without-repeating-characters/
思路

Update: 模板做法
易错点
最大长度记得加 1
删掉之前的元素之后,leftBound 继续左移
PreviousProblem 159: Longest Substring with At Most Two Distinct CharactersNextProblem 340: Longest Substring with At Most K Distinct Characters
Last updated
Was this helpful?