leetcode
奋斗的菜鸟儿
这个作者很懒,什么都没留下…
展开
-
Leetcode3 Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.Example 1:Input: “abcabcbb”Output: 3Explanation: The answer is “abc”, with the length of 3.Example 2:Input: ...原创 2019-08-18 16:32:40 · 76 阅读 · 0 评论 -
Leetcode 2 Add two numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return i...原创 2019-08-14 22:31:01 · 93 阅读 · 0 评论 -
Leetcode 1 two-sum
class Solution { public int[] twoSum(int[] nums, int target) { Map<Integer,Integer> map =new HashMap<Integer,Integer>(); for(int i=0;i<nums.length;i++) { ...原创 2019-08-11 16:32:57 · 73 阅读 · 0 评论