![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
AI大玩家0
这个作者很懒,什么都没留下…
展开
-
LeetCode 003 JAVA
#LeetCode 003 JAVA //滑动窗口 class Solution { public int lengthOfLongestSubstring(String s) { HashMap<Character, Integer> map = new HashMap<Character, Integer>(); int firs...原创 2020-02-12 20:48:03 · 92 阅读 · 0 评论 -
LeetCode 002 JAVA
LeetCode 001 JAVA /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ class Solution { public Li...原创 2020-02-11 21:34:41 · 71 阅读 · 0 评论 -
LeetCode 001 JAVA
LeetCode 001 JAVA class Solution { public int[] twoSum(int[] nums, int target) { for (int i = 0; i<nums.length; i++) { for (int j = i+1; j<nums.length; j++) { if (nums[j] == target ...原创 2020-02-11 21:33:22 · 102 阅读 · 0 评论