LC003 - Longest Substring Without Repeating Characters
Problem
Given a string s
, find the length of the longest substring without repeating characters.
Example
Input: s = "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
Solution
Index array is 128 because there are only 128 ASCII characters. Time complexity is with space.
Last updated