LongestSubstringWithoutRepeatingCharacters1 [LeetCode] #3 Longest Substring Without Repeating Characters Longest Substring Without Repeating CharactersxGiven a string, find the length of the longest substring without repeating characters. 중복되는 알파벳이 없는 가장 최장의 substring을 구하라는 문제이다.내 풀이부터 우선 보자. xclass Solution { public int lengthOfLongestSubstring(String s) { int answer = 0; String tmp = ""; for (int i = 0; i 2019. 12. 5. 이전 1 다음