Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fef02b

Browse files
authored
Update longestSubstringWithoutRepeatingCharacters.md
1 parent 698df85 commit 4fef02b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## 题目描述
2+
Given a string, find the length of the longest substring without repeating characters.
23

4+
Examples:
5+
6+
Given "abcabcbb", the answer is "abc", which the length is 3.
7+
8+
Given "bbbbb", the answer is "b", with the length of 1.
9+
10+
Given "pwwkew", the answer is "wke", with the length of 3. Note that the answer must be a substring, "pwke" is a subsequence and not a substring.
311
## 思路
412

513
## 代码
14+
```js
15+
/**
16+
* @param {string} s
17+
* @return {number}
18+
*/
19+
var lengthOfLongestSubstring = function(s) {
20+
21+
};
22+
```

0 commit comments

Comments
 (0)