File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ https://leetcode.com/problems/longest-substring-without-repeating-characters/
2
+
3
+ Given a string ` s ` , find the length of the longest substring without repeating characters.
4
+
5
+
6
+ Example 1:
7
+ ```
8
+ Input: s = "abcabcbb"
9
+ Output: 3
10
+ Explanation: The answer is "abc", with the length of 3.
11
+ ```
12
+
13
+ Example 2:
14
+ ```
15
+ Input: s = "bbbbb"
16
+ Output: 1
17
+ Explanation: The answer is "b", with the length of 1.
18
+ ```
19
+
20
+ Example 3:
21
+ ```
22
+ Input: s = "pwwkew"
23
+ Output: 3
24
+ Explanation: The answer is "wke", with the length of 3.
25
+ Notice that the answer must be a substring, "pwke" is a subsequence and not a substring.
26
+ ```
27
+
28
+ Constraints:
29
+
30
+ - 0 <= s.length <= 5 * 104
31
+ - ` s ` consists of English letters, digits, symbols and spaces.
You can’t perform that action at this time.
0 commit comments