https://leetcode.com/problems/longest-substring-without-repeating-characters/description/
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
used = {}
max_length = start = 0
for index, char in enumerate(s):
if char in used and start <= used[char]:
start = used[char] + 1
else:
max_length = max(max_length, index - start + 1)
used[char] = index
return max_length
🔹슬라이딩 윈도우와 투 포인터로 사이즈 조절........❓❓❓❓❓❓