Description:
Given a string s, find the length of the longest substring without repeating characters.
Constraints:
- 0 <= s.length <= $5*10^4$
- s consists of English letters, digits, symbols and spaces
Sliding Window
Appropriate Answer (Sliding Window):
1 |
|
- Time Complexity: $O(n)$
ʕ •ᴥ•ʔ:一開始有嘗試暴力解,但最後一個test case跑不過。