/LeetCode

LeetCode刷题总结

Primary LanguagePython

LeetCode

LeetCode 刷题总结

1.Two Sum
2.Add Two Numbers
3.Longest Substring Without Repeating Characters
4.Median of Two Sorted Arrays
5.Longest Palindromic Substring (Manacher算法待完成)
6.ZigZag Conversion
7.Reverse Integer
8.String to Integer (atoi)
9.Palindrome Number
10.Regular Expression Matching
11.Container With Most Water
12.Integer to Roman
13.Roman to Integer
14.Longest Common Prefix (Trie树待完成)
15.3Sum
16.3Sum Closest
17.Letter Combinations of a Phone Number
18.4Sum
19.Remove Nth Node From End of List
20.Valid Parentheses
21.Merge Two Sorted Lists
22.Generate Parentheses
23.Merge k Sorted Lists
24.Swap Nodes in Pairs
25.Reverse Nodes in k-Group
26.Remove Duplicates from Sorted Array
27.Remove Element
28.Implement strStr() (KMP待完成)
29.Divide Two Integers(和Binary Search有啥关系吗?)
30.
31.Next Permutation
32.Longest Valid Parentheses
33.Search in Rotated Sorted Array
34.Find First and Last Position of Element in Sorted Array
35.Search Insert Position
36.Valid Sudoku
37.Sudoku Solver
38.Count and Say
39.Combination Sum
40.Combination Sum II
41.First Missing Positive
42.Trapping Rain Water
43.Multiply Strings
44.
45.
46.Permutations
47.Permutations II
48.Rotate Image
49.Group Anagrams
50.Pow(x, n) (Binary search)
51.
52.
53.Maximum Subarray
54.
55.Jump Game
56.Merge Intervals
57.
58.
59.
60.
61.
62.Unique Paths
63.Unique Paths II
64.Minimum Path Sum
65.
66.
67.
68.
69.
70.Climbing Stairs
71.
72.
73.
74.
75.Sort Colors
76.
77.Combinations
78.Subsets
79.Word Search
80.
81.
82.
83.
84.Largest Rectangle in Histogram
85.Maximal Rectangle
86.
87.
88.
89.
90.Subsets II
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.

121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
123. Best Time to Buy and Sell Stock III
136. Single Number
137. Single Number II
139. Word Break
140. Word Break II
141. Linked List Cycle
142. Linked List Cycle II
148. Sort List
152. Maximum Product Subarray
160. Intersection of Two Linked Lists
169. Majority Element
188. Best Time to Buy and Sell Stock IV
198. House Robber
200. Number of Islands
206. Reverse Linked List
207. Course Schedule
215. Kth Largest Element in an Array (BFPRT)
221. Maximal Square
229. Majority Element II
234. Palindrome Linked List
238. Product of Array Except Self
239. Sliding Window Maximum
240. Search a 2D Matrix II
260. Single Number III
279. Perfect Squares
283. Move Zeroes
287. Find the Duplicate Number
300. Longest Increasing Subsequence
301. Remove Invalid Parentheses
309. Best Time to Buy and Sell Stock with Cooldown
312. Burst Balloons
322. Coin Change
338. Counting Bits
347. Top K Frequent Elements
394. Decode String
406. Queue Reconstruction by Height
416. Partition Equal Subset Sum
438. Find All Anagrams in a String
448. Find All Numbers Disappeared in an Array
461. Hamming Distance
494. Target Sum
560. Subarray Sum Equals K
581. Shortest Unsorted Continuous Subarray
621. Task Scheduler
647. Palindromic Substrings
771. Jewels and Stones