### leetcode

leetcode解题报告，尽量提供多种思路，使用Python，C，c++

6 已关注
33篇博文
• #### leetcode 33 -- Search in Rotated Sorted Array

Search in Rotated Sorted Array 题目： Suppose a sorted array is rotated at some pivot unknown to ...

2015-06-22 13:04
1822
• #### leetcode 32 -- Longest Valid Parentheses

Longest Valid Parentheses 题目： Given a string containing just the characters ‘(’ and ‘)’, find t...

2015-06-18 13:23
837
• #### leetcode 31 -- Next Permutation

Next Permutation 题目： Implement next permutation, which rearranges numbers into the lexicograph...

2015-06-15 18:52
836
• #### leetcode 30 -- Substring with Concatenation of All Words

Substring with Concatenation of All Words 题目： You are given a string, s, and a list of words, ...

2015-06-14 00:57
792
• #### leetcode 29 -- Divide Two Integers

Divide Two Integers 感想： >这道题因为有一点小问题一直导致AC不过，一会我会先贴上自己的正确代码，之前错误的贴到后面。 >在一直解决不了遇到的问题时，我去网上搜了下别人做...

2015-06-12 17:23
1832
• #### leetcode 28 -- Implement strStr()

Implement strStr() 题目： mplement strStr(). Returns the index of the first occurrence of nee...

2015-06-11 12:23
778
• #### leetcode 27 -- Remove Element

Remove Element 题目： Given an array and a value, remove all instances of that value in place and ...

2015-06-11 12:17
934
• #### leetcode 26 -- Remove Duplicates from Sorted Array

Remove Duplicates from Sorted Array 题目： Given a sorted array, remove the duplicates in place s...

2015-06-10 17:32
853
• #### leetcode 25 -- Reverse Nodes in k-Group

Reverse Nodes in k-Group 题目： Given a linked list, reverse the nodes of a linked list k at a tim...

2015-06-10 17:06
967
• #### leetcode 24 -- Swap Nodes in Pairs

Swap Nodes in Pairs 题目： Given a linked list, swap every two adjacent nodes and return its head...

2015-06-08 10:29
821
• #### leetcode23 -- Merge k Sorted Lists

Merge k Sorted Lists 题目： Merge two sorted linked lists and return it as a new list. The new lis...

2015-06-07 12:13
690
• #### leetcode 22 -- Generate Parentheses

Generate Parentheses 题目： Given n pairs of parentheses, write a function to generate all combin...

2015-06-06 23:23
1209
• #### leetcode 21 -- Merge Two Sorted Lists

Merge Two Sorted Lists 题目： Merge two sorted linked lists and return it as a new list. The new ...

2015-06-05 12:25
702
• #### leetcode 20 -- Valid Parentheses

Valid Parentheses 题目： Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ an...

2015-06-05 12:20
735
• #### leetcode 19 -- Remove Nth Node From End of List

Remove Nth Node From End of List 题目： Given a linked list, remove the nth node from the end of ...

2015-06-05 12:14
828
• #### leetcode 18 -- 4Sum

4Sum 题目：Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c...

2015-06-04 15:12
1136
• #### leetcode 17 -- Letter Combinations of a Phone Number

Letter Combinations of a Phone Number 题目： Given a digit string, return all possible letter com...

2015-06-03 10:52
776
• #### leetcode 16 -- 3Sum Closest

3Sum Closest 题目： Given an array S of n integers, find three integers in S such that the sum is...

2015-06-02 18:48
736
• #### leetcode 15 -- 3Sum

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

2015-06-01 14:06
730
• #### leetcode 14 -- Longest Common Prefix

Longest Common Prefix 题目： Write a function to find the longest common prefix string amongst an ...

2015-05-31 12:47
825

c++primer
1533727