1. leetcode 3 最长无重复字串 public int lengthOfLongestSubstring(String s) { int i=0,j=0; Set<Character> set=new HashSet<>(); int maxLen=0; while (j<s.length()){ char c=s.charAt(j); while (set.contains(c)){ set.remove(s.charAt...