Skip to content

Commit 6eaeef8

Browse files
committed
✨ [q3/README]
1 parent 1892a07 commit 6eaeef8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

3/README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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.

0 commit comments

Comments
 (0)