### LeetCode算法分析

LeetCode算法学习，我们踏踏实实走向一线互联网

5 已关注
115篇博文
• #### [LeetCode]--401. Binary Watch（递归有点懵）

A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom ...

2016-10-17 17:47
631
• #### [LeetCode]--404. Sum of Left Leaves

Find the sum of all left leaves in a given binary tree.Example: 3 / \ 9 20 / \ 1...

2016-10-17 22:37
555
• #### [LeetCode]--405. Convert a Number to Hexadecimal

Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s compl...

2016-10-18 09:17
584
• #### [LeetCode]--409. Longest Palindrome

Given a string which consists of lowercase or uppercase letters, find the length of the longest pali...

2016-10-18 10:35
779
• #### [LeetCode]--412. Fizz Buzz

Write a program that outputs the string representation of numbers from 1 to n.But for multiples of t...

2016-10-18 13:17
684

Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2....

2016-10-18 15:02
589
• #### [LeetCode]--5. Longest Palindromic Substring

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

2016-10-18 20:17
520
• #### [LeetCode]--11. Container With Most Water

Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n ...

2016-10-23 10:37
319
• #### [LeetCode]--12. Integer to Roman

[LeetCode]–13. Roman to Integer可以在上面的链接看一下罗马数字的排列规律。然后利用规律，构建数组，把基本的构建数放在数组里面，然后依次判断加进去就行。public cla...

2016-10-23 11:26
298
• #### [LeetCode]--15. 3Sum

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

2016-10-23 17:34
297
• #### [LeetCode]--17. Letter Combinations of a Phone Number

Given a digit string, return all possible letter combinations that the number could represent.A mapp...

2016-10-24 21:13
301
• #### [LeetCode]--18. 4Sum

Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = tar...

2016-10-25 17:13
206
• #### [LeetCode]--22. Generate Parentheses

Given n pairs of parentheses, write a function to generate all combinations of well-formed parenthes...

2016-10-27 22:03
201
• #### [LeetCode]--29. Divide Two Integers

Divide two integers without using multiplication, division and mod operator.If it is overflow, retur...

2016-10-28 10:43
205
• #### [LeetCode]--31. Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permuta...

2016-10-31 15:34
222
• #### [LeetCode]--34. Search for a Range

Given a sorted array of integers, find the starting and ending position of a given target value.Your...

2016-10-31 16:15
215
• #### [LeetCode]--35. Search Insert Position

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

2016-10-31 16:54
266
• #### [LeetCode]--39. Combination Sum

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

2016-11-01 13:12
323
• #### [LeetCode]--40. Combination Sum II

Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in...

2016-11-01 22:16
188
• #### [LeetCode]--43. Multiply Strings

Given two numbers represented as strings, return multiplication of the numbers as a string.Note: Th...

2016-11-02 18:29
230