### LeetCode题解

1 已关注
49篇博文
• #### leeetcode-40. Combination Sum II

40. Combination Sum II Given a collection of candidate numbers (C) and a target number (T), fin...

4小时前
0
• #### leetcode- 39. Combination Sum

39. Combination Sum iven a set of candidate numbers (C) (without duplicates) and a target num...

3天前 18:29
0
• #### leetcode-90. Subsets II

90. Subsets II Given a collection of integers that might contain duplicates, nums, return all poss...

4天前 21:37
10
• #### leetcode-78. Subsets

78. Subsets Given a set of distinct integers, nums, return all possible subsets (the power set)...

5天前 15:27
126
• #### leetcode-238. Product of Array Except Self

238. Product of Array Except Self Given an array of n integers where n > 1, nums, return an arra...

2017-11-29 20:38
150
• #### leetcode- 442. Find All Duplicates in an Array

442. Find All Duplicates in an Array Given an array of integers, 1 ≤ a[i] ≤ n (n = size of arra...

2017-11-27 12:44
163
• #### leetcode-100. Same Tree

100. Same Tree Given two binary trees, write a function to check if they are the same or not. Two...

2017-11-26 12:56
133
• #### leetcode-530. Minimum Absolute Difference in BST

530. Minimum Absolute Difference in BST Given a binary search tree with non-negative values, find...

2017-11-25 10:45
33
• #### leetcode-728. Self Dividing Numbers

728. Self Dividing Numbers A self-dividing number is a number that is divisible by every digi...

2017-11-24 16:57
344
• #### leetcode-387. First Unique Character in a String

387. First Unique Character in a String Given a string, find the first non-repeating characte...

2017-11-22 18:42
232
• #### leetcode-167. Two Sum II - Input array is sorted

167. Two Sum II - Input array is sorted Given an array of integers that is already sorted in asce...

2017-11-21 15:35
128
• #### leetcode-169. Majority Element

leetcode-169. Majority Element Given an array of size n, find the majority element. The majority e...

2017-11-21 09:00
114

455. Assign Cookies Assume you are an awesome parent and want to give your children some cookie...

2017-11-20 19:38
648

258. Add Digits Total Accepted: 79895 Total Submissions: 165648 Difficulty: Easy Giv...

2016-03-21 12:26
201
• #### <LeetCode>575. Distribute Candies

575. Distribute Candies Given an integer array with even length, where different numbers in thi...

2017-10-16 16:44
40
• #### LeetCode-104. Maximum Depth of Binary Tree

104. Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maxim...

2017-10-27 10:33
35
• #### LeetCode-283. Move Zeroes

283. Move Zeroes Given an array nums, write a function to move all 0's to the end of it while...

2017-11-05 19:56
35
• #### leetcode-697. Degree of an Array

697. Degree of an Array Given a non-empty array of non-negative integers nums, the degree of ...

2017-11-11 15:52
55
• #### leetcode-349. Intersection of Two Arrays

349. Intersection of Two Arrays Given two arrays, write a function to compute their intersectio...

2017-11-15 17:32
57
• #### <LeetCode> 292. Nim Game

这里是原题网址，点击我查看class Solution { public: bool canWinNim(int n) { if(n%4!=0) r...

2016-03-20 16:38
155