Leetcode
文章平均质量分 56
hellfiresong
这个作者很懒,什么都没留下…
展开
-
Leetcode Problem 1: Two sum
DescriptionGiven 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.Example: Given nums原创 2016-02-16 13:07:27 · 266 阅读 · 0 评论 -
Leetcode Problem 2: Add Two numbers
DescriptionYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it原创 2016-02-16 13:22:01 · 277 阅读 · 0 评论 -
Leetcode Problem 3: Longest non-repeated substring(LNRS).
Description: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for “abcabcbb” is “abc”, which the len原创 2016-02-17 10:14:59 · 334 阅读 · 0 评论 -
Leetcode problem 4:Median of Two Sorted Arrays
DescriptionThere 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)).Solution Median(中位数原创 2016-02-27 15:25:30 · 343 阅读 · 0 评论