Longest Substring Without Repeating Characters
-
[LeetCode] Longest Substring Without Repeating Characters코딩테스트/LeetCode 2022. 1. 3. 22:05
문제 Given a string s, find the length of the longest substring without repeating characters. 문자열 s가 주어지면 문자를 반복하지 않고 가장 긴 부분 문자열의 길이를 찾습니다. => 중복되지 않고 가장 긴 문자열의 길이를 구해라 Example Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: s = "pwwkew..