![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
下次用csdn
这个作者很懒,什么都没留下…
展开
-
LeetCode-1-两数之和
题目描述给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。示例:给定 nums = [2, 7, 11, 15], target = 9因为 nums[0] + nums[1] = 2 + 7 = 9所以返回 [0, 1]我的垃...原创 2019-05-08 12:46:47 · 233 阅读 · 0 评论 -
LeetCode-2-两数相加
题目描述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 ret...原创 2019-05-10 12:31:55 · 208 阅读 · 0 评论 -
LeetCode-3-无重复字符的最长子串(longest-substring-without-repeating-characters)
题目描述Given a string, find the length of the longest substring without repeating characters.给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。示例 1:输入: "abcabcbb"输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。示例 2:输入: "b...原创 2019-05-11 15:41:12 · 227 阅读 · 0 评论