### LeetCode

1 已关注
15篇博文
• #### [LeetCode][15]3Sum解析与快速排序算法-Java实现

Q: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? F...

2016-06-17 09:14
1319
• #### [LeetCode][14]Longest Common Prefix解析 两种算法和底层源码的深入对比-Java实现

Q: Write a function to find the longest common prefix string amongst an array of strings. A: 这题...

2016-06-15 13:12
2918
• #### [LeetCode][13]Roman to Integer解析 罗马字符转int类型关于栈的常数实现-Java实现

Q: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range...

2016-06-14 10:36
2111
• #### [LeetCode][12]Integer to Roman解析 int转罗马字符时间复杂度为常数的实现-Java实现

Q： Given an integer, convert it to a roman numeral. Input is guaranteed to be within the ran...

2016-06-13 09:57
1579
• #### [LeetCode][11]Container With Most Water解析 时间复杂度为O(n) -Java实现

Q： Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate...

2016-06-12 14:16
1917
• #### [LeetCode][10]Regular Expression Matching解析 -Java实现

Q： Implement regular expression matching with support for '.' and '*'. '.' Matches any single ...

2016-06-11 14:38
2247
• #### [LeetCode][9]Palindrome Number解析与StringBuilder.reverse()源码实现 -Java实现

Q： Determine whether an integer is a palindrome. Do this without extra space. A： 这个题目说实话，我是后半句没有看懂的...

2016-06-10 20:11
1853
• #### [LeetCode][8]String to Integer (atoi)解析与模仿Java源码实现 -Java实现

Q： Implement atoi to convert a string to an integer. Hint: Carefully consider all possible i...

2016-06-07 12:19
1349
• #### [LeetCode][7]Reverse Integer解析与位运算实现 -Java实现

Q： Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 ...

2016-06-06 15:57
1650
• #### [LeetCode][6]ZigZag Conversion解析与特殊解法 -Java实现

Q: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this...

2016-06-06 14:29
2986
• #### [LeetCode][5]Longest Palindromic Substring解析 -Java实现

Q： Given a string S, find the longest palindromic substring in S. You may assume that the maxim...

2016-06-05 13:48
653
• #### [LeetCode][4]Median of Two Sorted Arrays解析 -Java实现

Q： There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the...

2016-06-04 20:25
392
• #### [LeetCode][3]Longest Substring Without Repeating Characters解析 -Java实现

A: Given a string, find the length of the longest substring without repeating characters. Q: ...

2016-06-01 18:34
576
• #### [LeetCode][2]Add Two Numbers解析 -Java实现

Q： You are given two linked lists representing two non-negative numbers. The digits are stored in re...

2016-06-01 16:34
2481
• #### [LeetCode][1]Two Sum解析 -Java实现

Q: Given an array of integers, return indices of the two numbers such that they add up to a spe...

2016-06-01 16:23
1176