### LeetCode刷题记

LeetCode刷题记录

0 已关注
26篇博文
• #### LeetCode之24----Swap Nodes in Pairs

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

2016-04-21 19:08
1451
• #### LeetCode之23---Merge k Sorted Lists

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

2016-04-20 23:43
611
• #### LeetCode之22----Generate Parentheses

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

2016-04-20 19:57
954
• #### 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 spli...

2016-04-17 16:59
3114
• #### LeetCode之20---Valid Parentheses

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

2016-04-16 22:47
792
• #### LeetCode之19---Remove Nth Node From End of List

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

2016-04-16 14:33
2983
• #### 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...

2016-04-16 00:00
876
• #### LeetCode之17----Letter Combinations of a Phone Number

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

2016-04-14 18:46
3139
• #### LeetCode之16----3Sums Closest

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

2016-04-12 19:14
900
• #### 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...

2016-04-11 22:00
645
• #### LeetCode之14---Longest Common Prefix

题目： 　　Write a function to find the longest common prefix string amongst an array of strings. 题目大意： 　...

2016-04-10 14:21
2267
• #### LeetCode之13---Roman to Integer

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

2016-04-09 19:42
564
• #### LeetCode之12---Integer to Roman

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

2016-04-09 15:49
2058
• #### LeetCode之11---Container With Most Water

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

2016-04-08 18:00
1150
• #### LeetCode之10 --- Regular Expression Matching

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

2016-04-07 20:22
780
• #### LeetCode之9---Palindrome Number

题目： 　　Determine whether an integer is a palindrome. Do this without extra space. 题目大意： 　　判断一个数字是不...

2016-04-05 22:02
486
• #### LeetCode之8----String to Integer (atoi)

题目： 　　Implement atoi to convert a string to an integer. 题目大意： 　　将一个数字字符串转化为整数数字，返回整数数字。 思路： 　...

2016-04-05 19:53
461
• #### LeetCode之7 --- Reverse Integer

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

2016-04-04 18:41
460
• #### LeetCode之6---ZigZag Conversion

题目： 　　 　　The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like...

2016-04-04 15:19
447
• #### LeetCode之338—-Counting Bits

最近上算法课上的有点心塞，所以感觉应该刷刷题来见见世面了，所以选择了LeetCode来做一点题目。 LeetCode之338： Given a non negative integer numbe...

2016-03-26 15:31
446