Question
Given a string s
, find the length of the longest substring without repeating characters.
https://leetcode.com/problems/longest-substring-without-repeating-characters/
- Solution1
1 | public class Solution { |
Complexity:
Time complexity: O( n)
Space complexity: O(1)