Problem 3: Longest Substring Without Repeating Characters

https://leetcode.com/problems/longest-substring-without-repeating-characters/

思路

Update: 模板做法

易错点

  1. 最大长度记得加 1

  2. 删掉之前的元素之后,leftBound 继续左移

Last updated

Was this helpful?