Given a string s, find the length of the longest substring without duplicate characters.https://leetcode.com/problems/longest-substring-without-repeating-characters/ 문자열에서 반복되지 않는 문자가 나오기전까지 문자열의 갯수를 세는 것입니다. 첫번째 도전은 다음과 같이 했습니다.class Solution { int lengthOfLongestSubstring(String s) { if (s.length == 1) return 1; List list = []; int count = 0; for (int i =0; i count) { ..