문제 Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3.
코드 ''' 1) abcabcbb 예제 1.1 bcabcbb의 경우 index 0의 b와 index 3의 b가 반복됨 = > false 1.2 ''' class Solution: # 보조 함수 def check_repeat(self, substr: str) -> bool: #리스트를 스택으로 사용 stack=[] for n, letter in enumerate(substr): stack.append(substr) # 메인 문제 풀이 함수 (정답 반환) def lengthOfLongestSubstring(self, s: str) -> int: sub...