
LeetCode
文章平均质量分 64
Cedric1993
就这些吧
展开
-
LeetCode001__TWO SUM
**leetcode 第一题题目如下: 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. Example:原创 2016-08-07 15:26:06 · 328 阅读 · 0 评论 -
LeetCode004__Median of Two Sorted Arrays
国际惯例: here 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,原创 2016-09-07 11:12:32 · 303 阅读 · 0 评论 -
LeetCode002__Add Two Numbers
照常题目先放上来: You 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-08-07 21:28:12 · 314 阅读 · 5 评论 -
LeetCode003__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 ans原创 2016-09-05 18:24:52 · 257 阅读 · 0 评论 -
LeetCode005__Longest Palindromic Substring
1、引言还是国际惯例,先贴上leetcode上的原题: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substri原创 2016-09-13 11:30:35 · 338 阅读 · 0 评论