leetcode
Eve慕
这个作者很懒,什么都没留下…
展开
-
LeetCode 02 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...原创 2018-03-16 12:54:40 · 159 阅读 · 0 评论 -
LeetCode 03 Longest Substring Without Repeating Characters(最长不重复子序列)
Given a string, find the length of the longest substring without repeating characters. Examples: Given “abcabcbb”, the answer is “abc”, which the length is 3. Given “bbbbb”, the answer is “b”, with...原创 2018-03-16 15:59:10 · 252 阅读 · 0 评论 -
LeetCode 03 Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). Example 1: nums1 = [1, 3]...原创 2018-03-17 16:33:01 · 173 阅读 · 0 评论 -
LeetCode01 TwoSum
题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the ...原创 2018-03-12 10:53:09 · 149 阅读 · 0 评论