### leetcode

4 已关注
16篇博文
• #### 《leetCode》：3Sum Closest

题目Given an array S of n integers, find three integers in S such that the sum is closest to a given n...

2015-11-03 20:16
484
• #### 《leetCode》：3Sum

题目Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all ...

2015-11-03 19:52
969
• #### 《leetCode》：Merge Two Sorted Lists

题目Merge two sorted linked lists and return it as a new list. The new list should be made by splicing...

2015-11-02 22:28
466
• #### 《leetCode》：Remove Nth Node From End of List

题目描述Given a linked list, remove the nth node from the end of list and return its head.For example, ...

2015-11-02 20:53
472
• #### 《leetCode》：Remove Duplicates from Sorted Array II

题目描述Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?For example, Giv...

2015-11-02 19:07
485
• #### 《leetCode》：Remove Duplicates from Sorted Array

题目描述Given a sorted array, remove the duplicates in place such that each element appear only once and...

2015-11-02 18:58
462
• #### 《leetCode》：Longest Common Prefix

题目描述 Write a function to find the longest common prefix string amongst an array of strings. 大意就...

2015-11-01 17:35
475
• #### 《leetCode》：Integer to Roman

题目描述Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from ...

2015-11-01 16:49
462
• #### 《leetCode》：Roman to integer

题目描述Roman to integer罗马数字介绍基本字符 I V X L C D M 相应的阿拉伯数字表示为 1 5 10 50 100 500 1000 1、相同的数字连写、所表示的数...

2015-11-01 15:35
419
• #### 《leetCode》：palindrome Number

题目描述Determine whether an integer is a palindrome. Do this without extra space.题目大意：即检测一个数是否为回文数，不开辟额...

2015-10-31 22:37
555
• #### 《leetCode》：Convert String to Integer

题目描述Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cas...

2015-10-31 21:33
747
• #### 《leetCode》：Reverse Integer

题目描述：Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321实现代码如...

2015-10-31 19:01
527
• #### 《leetCode》：ZigZag Conversion

关于ZigZag的理解/* 1、第i排从i开始 2、 含numRows的每列相邻之间的元素的间隔为step=2*(numRows-1) 3、斜线上面的元素间隔为：step=j+step-2*i;其中...

2015-10-31 17:21
467
• #### 《leetCode》：Longest Substring Without Repeating Characters

题目描述如下：Given a string, find the length of the longest substring without repeating characters. For e...

2015-10-31 14:25
483
• #### 《leetCode》：add two num

题目描述如下You are given two linked lists representing two non-negative numbers. The digits are stored in...

2015-10-29 22:37
525
• #### 《LeetCode》：Two Sum

《LeetCode》：Two Sum昨天刚说的准备去刷《程序员面试金典》上面的题，但是看了下那本书上面的题，感觉都没有什么意思，因此也就打算来刷了leetCode上面的题了。刷题的顺序选择了按照顺...

2015-10-29 20:40
527