leet刷题指南

2018083115357161872381.png

分类

分治法/二叉树

100 Same Tree
101 Symmetric Tree
104 Maximum Depth of Binary Tree
226 Invert Binary Tree
437 Path Sum III *
538 Convert BST to Greater Tree
543 Diameter of Binary Tree

动态规划

53 Maximum Subarray
70 Climbing Stairs
121 Best Time to Buy and Sell Stock *
141 Linked List Cycle
198 House Robber

归纳法

66 Plus One

字符串处理

38 Count and Say
58 Length of Last Word
14 Longest Common Prefix
28 Implement strStr()
344 Reverse String

快慢指针

26 Remove Duplicates from Sorted Array
27 Remove Element

链表

21 Merge Two Sorted Lists
160 Intersection of Two Linked Lists
206 Reverse Linked List
234 Palindrome Linked List

hash表

1 Two Sum

155 Min Stack

数组

169 Majority Element
35 Search Insert Position
283 Move Zeroes
448 Find All Numbers Disappeared in an Array

7 Reverse Integer
9 Palindrome Number
136 Single Number
204 Count Primes
461 Hamming Distance

其他

20 Valid Parentheses