### LeetCode 解题报告

LeetCode 解题心得，思路，代码分享。

0 已关注
29篇博文
• #### LeetCode解题报告--Combination Sum II

题目： Given a collection of candidate numbers (C) and a target number (T), find all unique combinati...

2015-12-07 21:10
806
• #### LeetCode解题报告--Combination Sum

题目： Given a set of candidate numbers (C) and a target number (T), find all unique combinations in ...

2015-12-07 20:24
753
• #### LeetCode解题报告--Search Insert Position

题目： Given a sorted array and a target value, return the index if the target is found. If not, retu...

2015-12-04 16:58
1329
• #### LeetCode解题报告--Search for a Range

题目： Given a sorted array of integers, find the starting and ending position of a given target valu...

2015-12-04 13:32
2037
• #### LeetCode解题报告--Next Permutation

题目： Implement next permutation, which rearranges numbers into the lexicographically next greater p...

2015-12-03 20:54
1534
• #### LeetCode解题报告-- Count and Say

题目： The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, ...

2015-12-03 15:05
2294
• #### LeetCode解题报告--Remove Element

题目： Given an array and a value, remove all instances of that value in place and return the new le...

2015-10-18 10:44
745
• #### LeetCode解题报告--Remove Duplicates from Sorted Array

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

2015-10-18 10:10
470
• #### LeetCode解题报告--Reverse Nodes in k-Group

题目 Given a linked list, reverse the nodes of a linked list k at a time and return its modified li...

2015-10-17 23:48
615
• #### LeetCode解题报告--Swap Nodes in Pairs

题目： Given a linked list, swap every two adjacent nodes and return its head. For example, Gi...

2015-10-17 11:11
1349
• #### LeetCode解题报告--Longest Palindromic Substring

Given a string S, find the longest palindromic substring in S. You may assume that the maximum lengt...

2015-05-17 16:15
654
• #### LeetCode解题报告--ZigZag Conversion

题目来源：https://leetcode.com/problems/zigzag-conversion/P AH N AP LS I I G YI R 解法一： 间距为: icount ...

2015-06-02 00:04
587
• #### LeetCode解题报告---Reverse Integer

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 原题出处：htt...

2015-06-03 03:55
548
• #### LeetCode解题报告--String to Integer (atoi)

Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. ...

2015-06-05 05:28
627
• #### LeetCode解题报告--Palindrome Number

题目：回文数字的判断 Determine whether an integer is a palindrome. Do this without extra space.Some hints: C...

2015-08-13 17:28
1346
• #### LeetCode解题报告--Container With Most Water

题目：最大的盛水容器Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (...

2015-08-13 17:37
686
• #### LeetCode解题报告--Integer to Roman

题目：阿拉伯数字转罗马数字Given an integer, convert it to a roman numeral. Input is guaranteed to be within the ...

2015-08-13 19:39
737
• #### LeetCode解题报告--Roman to Integer

题目：罗马数字转为阿拉伯数字 Given a roman numeral, convert it to an integer.Input is guaranteed to be within the...

2015-08-13 19:46
827
• #### LeetCode解题报告--Longest Common Prefix

题目：最长公共前缀 Write a function to find the longest common prefix string amongst an array of strings.分析：...

2015-08-14 15:43
1358
• #### LeetCode解题报告--3 Sum

题目： 3 个数和问题 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0...

2015-08-16 16:37
1111