leetcode题目清单
2016-09-24,开始刷leetcode上的算法题,下面整理一下leetcode题目清单。Github-leetcode
1.基本数学
-
Two Sum
-
Palindrome Number
-
Container With Most Water (数学思想)
2.数组
-
4Sum (数组)
-
3Sum (数组)
-
3Sum Closest (数组)
-
Third Maximum Number (数组)
-
Move Zeroes (两个指针)
-
Rotate Image (二维数组)
3.字符串
-
ZigZag Conversion
-
Reverse Integer(整数与字符串之间的转换)
-
String to Integer (atoi)(字符串转整数)
-
Longest Common Prefix(不同于最长公共序列)
4.动态规划
5.贪心算法
6.递归
7.DFS
8.BFS
9.MST
10.二分查找
11.排序
-
Median of Two Sorted Arrays(归并排序)
-
merge-k-sorted-lists (链表归并排序)
-
Sort List (链表归并排序)
-
Merge Two Sorted Lists (归并排序)
12.链表
-
Add Two Numbers
-
Merge Two Sorted Lists
-
Remove Nth Node From End of List
13.二叉树
13.堆栈
-
Valid Parentheses