leetcode
T1213042042
这个作者很懒,什么都没留下…
展开
-
1.两数之和
1.两数之和 class Solution { public int[] twoSum(int[] nums, int target) { int[] res = new int[2]; if(nums == null || nums.length <=1) return res; HashMap<Integer, Integer...翻译 2019-08-20 15:18:49 · 118 阅读 · 0 评论 -
3. 无重复字符的最长子串
class Solution { public int lengthOfLongestSubstring(String s) { int n = s.length(); int res = 0; int end=0,start=0; Set<Character> set=new HashSet<>(); ...翻译 2019-08-20 16:18:13 · 121 阅读 · 0 评论