### Java初刷LeetCode

1 已关注
28篇博文
• #### LeetCode 28 Implement strStr() 找到字串返回位置。

题目： Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if...

2015-05-07 16:54
1250
• #### LeetCode 27 Remove Element

题目： Given an array and a value, remove all instances of that value in place and return the new ...

2015-05-07 12:39
1573
• #### LeetCode 26 Remove Duplicates from Sorted Array

题目： Given a sorted array, remove the duplicates in place such that each element appear only onc...

2015-05-07 12:26
1553
• #### LeetCode 25 Reverse Nodes in k-Group K个一组反转节点

题目： Given a linked list, reverse the nodes of a linked list k at a time and return its modified...

2015-05-06 15:02
2182
• #### LeetCode24 Swap Nodes in Pairs 成对交换链表节点

题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Give...

2015-05-06 13:55
2380
• #### LeetCode23 Merge k Sorted Lists 把K个有序链表连接成一个

题目： Merge k sorted linked lists and return it as one sorted list. Analyze and describe its comple...

2015-05-06 11:17
2377
• #### LeetCode22 Generate Parentheses 括号生成

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

2015-05-05 13:24
2595
• #### LeetCode 21 Merge Two Sorted Lists 把两个链表有序连接

题目： Merge two sorted linked lists and return it as a new list. The new list should be made by splic...

2015-05-05 10:21
2219
• #### LeetCode 20 Valid Parentheses 括号匹配问题

题目： Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine ...

2015-05-05 10:12
2419
• #### LeetCode 19 Remove Nth Node From End of List 移除倒数第N个节点

题目： Given a linked list, remove the nth node from the end of list and return its head. For e...

2015-05-04 15:37
2454
• #### LeetCode 18 4sum 找出4个数，使得他们的和等于target

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

2015-05-04 15:05
2373
• #### LeetCode 17 Letter Combinations of a Phone Number 数字转为字母组合

题目： Given a digit string, return all possible letter combinations that the number could represent....

2015-05-04 10:38
2965
• #### LeetCode 16 3Sum Closest 找出最接近指定target的三个数的和

题目： Given an array S of n integers, find three integers in S such that the sum is closest to a gi...

2015-05-04 09:26
2130
• #### LeetCode 15 3Sum 找出数组里面3个数的和等于指定值。

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

2015-04-23 13:17
2553
• #### LeetCode 14 Longest Common Prefix 最长前缀

题目：Write a function to find the longest common prefix string amongst an array of strings. 翻译：求一个字符串...

2015-04-23 09:33
1681
• #### LeetCode13 Roman to Integer 罗马转为数字

题目： Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range fr...

2015-04-22 13:55
1895
• #### Leetcode 12 Integer to Roman整数变罗马

题目： Given an integer, convert it to a roman numeral. Input is guaranteed to be within the rang...

2015-04-22 12:56
1633
• #### LeetCode 11 Container With Most Water 装尽可能多的水

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

2015-04-22 11:11
2152
• #### LeetCode 10 Regular Expression Matching 正则匹配

题目： Implement regular expression matching with support for '.' and '*'. '.' Matches any single cha...

2015-04-21 19:08
3001
• #### LeetCode 9 Palindrome Number 回文数字

题目：Determine whether an integer is a palindrome. Do this without extra space. 翻译：判断一个数字是否是回文数，不要额外空...

2015-04-20 14:55
3193