摘要: 1 public int lengthOfLongestSubstring(String s) { 2 char[] chars = s.toCharArray(); 3 //存储已遍历的元素中相应char值最后出现的位置 4 HashMap map = new HashMap(); 5 //当遍历到i位置时,lastNoRepeatIndex到i是已遍... 阅读全文
posted @ 2017-05-14 12:48 zouxiaochuan 阅读(148) 评论(0) 推荐(0)