### LeetCode题解

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

1 已关注
41篇博文
• #### 【LeetCode OJ 101】Symmetric Tree

题目链接：https://leetcode.com/problems/symmetric-tree/ 题目：Given a binary tree, check whether it is a mi...

2016-04-01 15:17
421
• #### 【LeetCode OJ 075】Sort Colors

题目链接：https://leetcode.com/problems/sort-colors/ 题目：Given an array with n objects colored red, whi...

2016-03-27 12:59
524
• #### 【LeetCode OJ 073】Set Matrix Zeroes

题目链接:https://leetcode.com/problems/set-matrix-zeroes/ 题目：Given a m x n matrix, if an element is 0...

2016-03-13 20:08
786
• #### 【LeetCode OJ 090】Subsets II

题目链接：https://leetcode.com/problems/subsets-ii/ 题目：Given a collection of integers that might contain...

2016-03-12 14:48
811
• #### 【LeetCode OJ 078】Subsets

题目链接：https://leetcode.com/problems/subsets/ 题目：Given a set of distinct integers, nums, return all...

2016-03-12 14:42
857
• #### 【LeetCode OJ 268】Missing Number

题目链接：https://leetcode.com/problems/missing-number/ 题目：Given an array containing n distinct number...

2016-03-02 21:30
758
• #### 【LeetCode OJ 328】Odd Even Linked List

2016-03-02 17:09
761
• #### 【LeetCode OJ 061】Rotate List

题目链接：https://leetcode.com/problems/rotate-list/ 题目：Given a list, rotate the list to the right by k ...

2016-03-01 15:08
527
• #### 【LeetCode OJ 203】Remove Linked List Elements

2016-02-28 19:53
834
• #### 【LeetCode OJ 225】Implement Stack using Queues

题目链接：https://leetcode.com/problems/implement-stack-using-queues/ 题目：Implement the following operati...

2016-02-26 10:17
909
• #### 【LeetCode OJ 232】Implement Queue using Stacks

题目链接：https://leetcode.com/problems/implement-queue-using-stacks/ 题目：Implement the following operati...

2016-02-25 21:02
860
• #### 【LeetCode OJ 20】Valid Parentheses

题目链接：https://leetcode.com/problems/valid-parentheses/ 题目：Given a string containing just the charact...

2016-02-23 20:54
622
• #### 【LeetCode OJ 14】Longest Common Prefix

题目链接：https://leetcode.com/problems/longest-common-prefix/ 题目：Write a function to find the longest c...

2016-02-23 20:21
879
• #### 【LeetCode OJ 28】Implement strStr()

题目链接：https://leetcode.com/problems/implement-strstr/ 题目：implement strStr(). Returns the index of th...

2016-01-26 16:53
759
• #### 【LeetCode OJ 260】Single Number III

题目链接：https://leetcode.com/problems/single-number-iii/ 题目：Given an array of numbers nums, in which...

2016-01-25 16:30
1362
• #### 【LeetCode OJ 41】First Missing Positive

题目链接：https://leetcode.com/problems/first-missing-positive/ 题目：Given an unsorted integer array, find ...

2016-01-25 09:18
496
• #### 【LeetCode OJ 136】Single Number

题目链接：https://leetcode.com/problems/single-number/ 题目：Given an array of integers, every element appe...

2016-01-21 16:11
2180
• #### 【LeetCode OJ 34】Search for a Range

题目链接：https://leetcode.com/problems/search-for-a-range/ 题目：Given a sorted array of integers, find th...

2016-01-21 11:06
909
• #### 【LeetCode OJ 237】Delete Node in a Linked List

题目链接：https://leetcode.com/problems/delete-node-in-a-linked-list/ 题目：Write a function to delete a nod...

2016-01-20 15:03
1098
• #### 【LeetCode OJ 263】Ugly Number

题目链接：https://leetcode.com/problems/ugly-number/ 题目：Write a program to check whether a given number ...

2016-01-19 22:01
1133