leetCode 第三题

题目详情 思路分析 去重的问题首先应该想到的是set数据结构。其的思路就是去利用set来进行记录当前的集合中是否有重复的元素。web class Solution { public int lengthOfLongestSubstring(String s) { Set<Character> s1 = new HashSet<Character>(); int len
相关文章
相关标签/搜索