作者:disappearedgod
时间:2014-4-16
前言
这里是一个刷题汇总的表格,前面刷题一般用的是大家代码的总结,可能注释和版本会多一些。
Title里面分为两种超链接:
- 一种是题目超链接来自官网,
- 一种是解法的超链接来自本博客。
LeetCode的真谛在于:遇到不懂 => 查答案 => 自己理解写出来或背下来 => 过一段时间后第二遍重做
列表
图例
Diff
1(#FFFFFF) | 2(#FFFF33) | 3(#CC9933) | 4(#FFCC99) | 5(#99000) |
Freq
1(#FFFFFF) | 2(#CCFFFF) | 3(#3333FF) | 4(#66CCCC) | 5(#330099) |
No.1 | Title | Submit Date | Algorithm | Diff | Freq |
1 | LeetCode-Two Sum & Solution | 2014/4/13 | Hash(Set) & sort | 2(5) | 5(5) |
148 | LeetCode-Sort List & Solution | 2014/4/15 | List &List sort | - | - |
2 | LeetCode -Add Two Numbers & Solution | 2014/4/16 | List | 3(5) | 4(5) |
147 | LeetCode-Insertion Sort List & Solution | 2014/4/16(&17) | List &List sort | - | - |
19 | LeetCode-Remove Nth Node From End of List & Solution | 2014/4/17 | List | 2(5) | 3(5) |
23 | Leetcode-Swap Nodes in Pairs & Solution | 2014/4/17 | List | 3(5) | 4(5) |
24 | LeetCode-Reverse Nodes in k-Group & Solution | 2014/4/18 | List | 2(5) | 4(5) |
56 | Leetcode-Rotate List & Solution | 2014/4/22 | List | 4(5) | 5(5) |
Leetcode-Merge Two Sorted Lists & Solution | 2014/5/6 | Merge & List | 3(5) | 3(5) | |
82 | Leetcode-Remove Duplicates from Sorted List II & Solution | 2014/5/6 | List | 3(5) | 3(5) |
83 | Leetcode-Remove Duplicates from Sorted List & Solution | 2014/5/9 | List | 1(5) | 3(5) |
Leetcode-Partition List & Solution | 2014/8/19 | List | (5) | (5) | |
92 | Leetcode-Reverse Linked List II & Solution | 2014/4/18 | List | 3(5) | 2(5) |
Leetcode-Linked List Cycle II & Solution | 2014/8/19 | List | (5) | ||
Leetcode-Linked List Cycle & Solution | 2014/8/19 | List | (5) | ||
Leetcode-Reorder List & Solution | 2014/8/20 | List | (5) | ||
LeetCode-LRU Cache &Solution | 2014/8/18 | List | (5) | ||
125 | LeetCode-Valid Palindrome&Solution | 2014/4/23 | Two Pointers & String | 2(5) | 5(5) |
88 | LeetCode-Merge Sorted Array&Solution | 2014/4/23 | List | 2(5) | 5(5) |
8 | LeetCode-String to Integer (atoi)&Solution | 2014/4/24 | string & Regular Expression | 2(5) | 5(5) |
98 | LeetCode-Validate Binary Search Tree &Solution | 2014/5/19 | Tree | 3(5) | 5(5) |
LeetCode-Binary Tree Level Order Traversal &Solution | 2014/8/28 | Tree | (5) | ||
129 | LeetCode-Sum Root to Leaf Numbers &Solution | 2014/5/24 | Tree & DFS | 2(5) | 4(5) |
LeetCode-Convert Sorted Array to Binary Search Tree &Solution | 2014/6/5 | Tree & Sort Array | 2(5) | 3(5) | |
112 | LeetCode-Path Sum &Solution | 2014/5/23 | Tree | 1(5) | 3(5) |
116 | LeetCode-Populating Next Right Pointers in Each Node &Solution | 2014/6/3 | Tree | 3(5) | 3(5) |
LeetCode-Populating Next Right Pointers in Each Node II &Solution | 2014/8/29 | Tree | (5) | ||
LeetCode-Flatten Binary Tree to Linked List &Solution | 2014/6/6 | Tree & list | (5) | ||
LeetCode-Binary Tree Zigzag Level Order Traversal & Solution | 2014/5/26 | Tree | (5) | ||
LeetCode-Construct Binary Tree from Preorder and Inorder Tree & Solution | Tree | (5) | |||
LeetCode-Construct Binary Tree from Inorder and Postorder Tree & Solution | Tree | (5) | |||
LeetCode-Recover Binary Search Tree & Solution | Tree | (5) | |||
101 | LeetCode-Symmetric Tree &Solution | 2014/5/14 | Tree | (5) | |
110 | LeetCode-Balanced Binary Tree & Solution | 2014/5/20 | Tree | (5) | |
LeetCode-Path Sum II &Solution | Tree | (5) | |||
LeetCode-Binary Tree Inorder Traversal &Solution | 2014/8/30 | Tree | (5) | ||
LeetCode-Binary Tree Maximum Path Sum &Solution | Tree | (5) | |||
LeetCode-Binary Tree Level Order Traversal II &Solution | 2014/5/26 | Tree | (5) | ||
100 | LeetCode-Same Tree &Solution | 2014/5/14 | Tree | (5) | |
LeetCode-Minimum Depth of Binary Tree &Solution | 2014/6/7 | Tree & DFS | (5) | ||
LeetCode-Unique Binary Search Trees II &Solution | 2014/6/13 | Tree & DP | (5) | ||
LeetCode-Unique Binary Search Trees &Solution | 2014/6/5 | Tree & DP | (5) | ||
LeetCode-Binary Tree Preorder Traversal & Solution | 2014/5/23 | Tree | (5) | ||
LeetCode-Binary Tree Postorder Traversal & Solution | 2014/6/4 | Tree & Solution | (5) | ||
LeetCode-Longest Valid Parentheses &Solution | 2014/6/11 | String & DP | (5) | ||
LeetCode-Wildcard Matching & Solution | 2014-6-10 | DP & Greedy & String | (5) | ||
LeetCode-Maximum Subarray & Solution | 2014/6/12 | DP | (5) | ||
LeetCode-Unique Paths & Solution | 2014/6/12 | DP | (5) | ||
LeetCode-Unique Paths II & Solution | 2014/6/12 | DP | (5) | ||
LeetCode-Minimum Path Sum & Solution | 2014/6/12 | DP | (5) | ||
LeetCode-Climbing Stairs & Solution | 2014/6/12 | DP | (5) | ||
LeetCode-Edit Distance & Solution | 2014/6/18 | DP & String | (5) | ||
LeetCode-Maximal Rectangle & Solution | DP | (5) | |||
LeetCode-Scramble String & Solution | DP & String | (5) | |||
LeetCode-Decode Ways & Solution | DP | (5) | |||
LeetCode-Interleaving String &Solution | 2014/9/1 | DP & String | (5) | ||
LeetCode-Distinct Subsequences & Solution | 2014/8/31 | DP & String | (5) | ||
LeetCode-Triangle &Solution | 2014/9/1 | DP & Tree | (5) | ||
LeetCode-Best Time to Buy and Sell Stock & Solution | DP | (5) | |||
LeetCode-Best Time to Buy and Sell Stock III & Solution | DP | (5) | |||
LeetCode-Palindrome Partitioning II & Solution | DP & String | (5) | |||
LeetCode-Best Time to Buy and Sell Stock II & Solution | Greedy | (5) | |||
LeetCode-Valid Parentheses & Solution | 2014/8/21 | [String] | (5) | ||
LeetCode-Generate Parentheses & Solution | [String] | (5) | |||
LeetCode-Implement strStr() & Solution | 2014/8/22 | [String] & KMP | (5) | ||
LeetCode-Palindrome PartitioningI & II & Solution | [String] | (5) | |||
LeetCode-Decode Ways & Solution | [String] | (5) | |||
LeetCode-Add Binary & Solution | 2014/9/14 | [String] | (5) | ||
LeetCode-Anagrams &Solution | 2014/9/1 | [String] | (5) | ||
LeetCode-Letter Combinations of a Phone Number & Solution | 2014/10/4 | [String] | (5) | ||
LeetCode-Restore IP Addresses & Solution | [String] | (5) | |||
LeetCode-Regular Expression Matching & Solution | [String] | (5) | |||
LeetCode-Multiply Strings & Solution | [String] | (5) | |||
LeetCode-Longest Substring Without Repeating Characters &Solution | [String] | (5) | |||
LeetCode-Valid Number & Solution | |||||
LeetCode-Count and Say & Solution | 2014/9/1 | [String] | (5) | ||
LeetCode-Minimum Window Substring & Solution | [String] | (5) | |||
LeetCode-Longest Palindromic SubString &Solution | [String] | (5) | |||
LeetCode-Text Justification & Solution | [String] | (5) | |||
LeetCode-Valid Number & Solution | [String] | (5) | |||
LeetCode-Simplify Path & Solution | 2014/9/18 | [String] | (5) | ||
LeetCode-Substring with Concatenation of All Words & Solution | [String] | (5) | |||
LeetCode-ZigZag Conversion & Solution | [String] | (5) | |||
LeetCode-Longest Common Prefix & Solution | [String] | (5) | |||
LeetCode-Length of Last Word &Solution | 2014/8/27 | [String] | (5) | ||
LeetCode-N-Queens &Solution | 2014/9/10 | (5) | |||
LeetCode-Remove Duplicates from Sorted Array &Solution | 2014/9/12 | (5) | |||
LeetCode-Gray Code &Solution | 2014/9/12 | (5) | |||
LeetCode-Sort Colors &Solution | 2014/9/12 | (5) | |||
LeetCode-Pascal's Triangle &Solution | 2014/9/12 | (5) | |||
LeetCode-Search in Rotated Sorted Array &Solution | 2014/9/12 | (5) | |||
LeetCode-Plus One &Solution | 2014/9/13 | (5) | |||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode- | (5) | ||||
LeetCode-Convert Sorted List to Binary Search Tree & Solution | 2014/8/19 | List、Tree、Sorted | (5) | ||
(5) | |||||
LeetCode-Permutation Sequence &Solution | 2014/8/13 | permutation | (5) | ||
LeetCode-Next Permutation & Solution | (5) | ||||
LeetCode-Permutations &Solution | 2014/9/28 | permutation | (5) | ||
LeetCode-Permutations II & Solution | (5) | ||||
LeetCode-Search a 2D Matrix &Solution | 2014/6/5 | Bi-Search | (5) |
题目列表(before 2014/4/15)