0005 Leetcode 3. Longest Substring Without Repeating Characters
0005 Leetcode 3. Longest Substring Without Repeating Characters
html
Example 1:
Input: "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
Example 2:
Input: "bbbbb"
Output: 1
Explanation: The answer is "b", with the length of 1.
Example 3:
Input: "pwwkew"
Output: 3
Explanation: The answer is "wke", with the length of 3.
Note that the answer must be a substring, "pwke" is a
Difficulty:
Medium
Lock:
1 of 3 21/11/2024, 10:59 pm
Leetcode 3. Longest Substring Without Repeating Characters https://leetcode.ca/all/3.html
Normal
Company:
Adobe (https://leetcode.ca/tags/#Adobe)
Alation (https://leetcode.ca/tags/#Alation)
Alibaba (https://leetcode.ca/tags/#Alibaba)
Amazon (https://leetcode.ca/tags/#Amazon)
Apple (https://leetcode.ca/tags/#Apple)
Atlassian (https://leetcode.ca/tags/#Atlassian)
Baidu (https://leetcode.ca/tags/#Baidu)
Bloomberg (https://leetcode.ca/tags/#Bloomberg)
ByteDance (https://leetcode.ca/tags/#ByteDance)
Facebook (https://leetcode.ca/tags/#Facebook)
Huawei (https://leetcode.ca/tags/#Huawei)
Microsoft (https://leetcode.ca/tags/#Microsoft)
Salesforce (https://leetcode.ca/tags/#Salesforce)
Samsung (https://leetcode.ca/tags/#Samsung)
SAP (https://leetcode.ca/tags/#SAP)
Snapchat (https://leetcode.ca/tags/#Snapchat)
Tencent (https://leetcode.ca/tags/#Tencent)
Problem Solution
3-Longest-Substring-Without-Repeating-Characters
(https://leetcode.ca/2015-12-03-3-Longest-Substring-
Without-Repeating-Characters)
2 of 3 21/11/2024, 10:59 pm
Leetcode 3. Longest Substring Without Repeating Characters https://leetcode.ca/all/3.html
All Problems:
3 of 3 21/11/2024, 10:59 pm