Skip to content

Latest commit

 

History

History
125 lines (121 loc) · 26.1 KB

README_EN.md

File metadata and controls

125 lines (121 loc) · 26.1 KB

| English | 简体中文 |

My LeetCode Solutions


Last updated: 2020-07-05 22:15:32

The source code is fetched using the tool LeetCode_Helper.

# Title Solutions Acceptance Difficulty Tags
面试题 08.01 Three Steps Problem LCCI C++ 34.6% easy Dynamic Programming
387 First Unique Character in a String C++ 45.6% easy Hash Table
String
383 Ransom Note C++ 53.8% easy String
349 Intersection of Two Arrays C++ 69.7% easy Sort
Hash Table
Two Pointers
Binary Search
345 Reverse Vowels of a String C++ 50.2% easy Two Pointers
String
344 Reverse String C++ 70.6% easy Two Pointers
String
303 Range Sum Query - Immutable C++ 62.0% easy Dynamic Programming
289 Game of Life C++ 74.4% medium Array
287 Find the Duplicate Number C++ 65.7% medium Array
Two Pointers
Binary Search
283 Move Zeroes C++ 61.5% easy Array
Two Pointers
278 First Bad Version C++ 39.4% easy Binary Search
268 Missing Number C++ 56.1% easy Bit Manipulation
Array
Math
257 Binary Tree Paths C++ 64.2% easy Tree
Depth-first Search
238 Product of Array Except Self C++ 70.4% medium Array
235 Lowest Common Ancestor of a Binary Search Tree C++ 64.3% easy Tree
229 Majority Element II C++ 43.2% medium Array
228 Summary Ranges C++ 53.0% medium Array
227 Basic Calculator II C++ 36.3% medium String
226 Invert Binary Tree C++ 75.6% easy Tree
219 Contains Duplicate II C++ 39.4% easy Array
Hash Table
217 Contains Duplicate C++ 52.6% easy Array
Hash Table
216 Combination Sum III C++ 71.4% medium Array
Backtracking
209 Minimum Size Subarray Sum C++ 44.4% medium Array
Two Pointers
Binary Search
198 House Robber C++ 45.8% easy Dynamic Programming
189 Rotate Array C++ 42.0% easy Array
169 Majority Element C++ 63.7% easy Bit Manipulation
Array
Divide and Conquer
167 Two Sum II - Input array is sorted C++ 54.6% easy Array
Two Pointers
Binary Search
165 Compare Version Numbers C++ 42.0% medium String
162 Find Peak Element C++ 46.7% medium Array
Binary Search
153 Find Minimum in Rotated Sorted Array C++ 51.0% medium Array
Binary Search
152 Maximum Product Subarray C++ 39.9% medium Array
Dynamic Programming
151 Reverse Words in a String C++ 42.7% medium String
125 Valid Palindrome C++ 45.7% easy Two Pointers
String
122 Best Time to Buy and Sell Stock II C++ 61.0% easy Greedy
Array
121 Best Time to Buy and Sell Stock C++ 54.4% easy Array
Dynamic Programming
120 Triangle C++ 65.1% medium Array
Dynamic Programming
119 Pascal's Triangle II C++ 61.2% easy Array
118 Pascal's Triangle C++ 66.7% easy Array
112 Path Sum C++ 49.9% easy Tree
Depth-first Search
111 Minimum Depth of Binary Tree C++ 42.8% easy Tree
Depth-first Search
Breadth-first Search
110 Balanced Binary Tree C++ 52.3% easy Tree
Depth-first Search
108 Convert Sorted Array to Binary Search Tree C++ 73.3% easy Tree
Depth-first Search
107 Binary Tree Level Order Traversal II C++ 65.9% easy Tree
Breadth-first Search
106 Construct Binary Tree from Inorder and Postorder Traversal C++ 68.9% medium Tree
Depth-first Search
Array
105 Construct Binary Tree from Preorder and Inorder Traversal C++ 67.4% medium Tree
Depth-first Search
Array
104 Maximum Depth of Binary Tree C++ 73.6% easy Tree
Depth-first Search
101 Symmetric Tree C++ 52.3% easy Tree
Depth-first Search
Breadth-first Search
100 Same Tree C++ 58.1% easy Tree
Depth-first Search
94 Binary Tree Inorder Traversal C++ 71.9% medium Stack
Tree
Hash Table
93 Restore IP Addresses C++ 47.0% medium String
Backtracking
91 Decode Ways C++ 23.9% medium String
Dynamic Programming
90 Subsets II C++ 60.4% medium Array
Backtracking
88 Merge Sorted Array C++ 48.0% easy Array
Two Pointers
81 Search in Rotated Sorted Array II C++ 35.7% medium Array
Binary Search
80 Remove Duplicates from Sorted Array II C++ 55.8% medium Array
Two Pointers
79 Word Search C++ 41.9% medium Array
Backtracking
78 Subsets C++ 77.5% medium Bit Manipulation
Array
Backtracking
75 Sort Colors C++ 55.1% medium Sort
Array
Two Pointers
74 Search a 2D Matrix C++ 38.3% medium Array
Binary Search
73 Set Matrix Zeroes C++ 55.6% medium Array
71 Simplify Path C++ 39.9% medium Stack
String
70 Climbing Stairs C++ 49.9% easy Dynamic Programming
69 Sqrt(x) C++ 38.8% easy Math
Binary Search
67 Add Binary C++ 54.3% easy Math
String
66 Plus One C++ 44.6% easy Array
64 Minimum Path Sum C++ 65.9% medium Array
Dynamic Programming
63 Unique Paths II C++ 33.7% medium Array
Dynamic Programming
62 Unique Paths C++ 60.8% medium Array
Dynamic Programming
59 Spiral Matrix II C++ 77.6% medium Array
58 Length of Last Word C++ 33.4% easy String
56 Merge Intervals C++ 42.7% medium Sort
Array
55 Jump Game C++ 40.4% medium Greedy
Array
54 Spiral Matrix C++ 40.7% medium Array
53 Maximum Subarray C++ 51.6% easy Array
Divide and Conquer
Dynamic Programming
49 Group Anagrams C++ 62.3% medium Hash Table
String
48 Rotate Image C++ 68.7% medium Array
43 Multiply Strings C++ 42.5% medium Math
String
40 Combination Sum II C++ 62.0% medium Array
Backtracking
39 Combination Sum C++ 69.1% medium Array
Backtracking
38 Count and Say C++ 55.7% easy String
35 Search Insert Position C++ 45.8% easy Array
Binary Search
34 Find First and Last Position of Element in Sorted Array C++ 39.8% medium Array
Binary Search
33 Search in Rotated Sorted Array C++ 38.2% medium Array
Binary Search
31 Next Permutation C++ 34.0% medium Array
28 Implement strStr() C++ 39.7% easy Two Pointers
String
27 Remove Element C++ 58.4% easy Array
Two Pointers
26 Remove Duplicates from Sorted Array C++ 50.6% easy Array
Two Pointers
22 Generate Parentheses C++ 75.7% medium String
Backtracking
20 Valid Parentheses C++ 41.9% easy Stack
String
18 4Sum C++ 37.9% medium Array
Hash Table
Two Pointers
17 Letter Combinations of a Phone Number C++ 53.8% medium String
Backtracking
16 3Sum Closest C++ 45.8% medium Array
Two Pointers
15 3Sum C++ 28.4% medium Array
Two Pointers
14 Longest Common Prefix C++ 38.4% easy String
13 Roman to Integer C++ 61.8% easy Math
String
12 Integer to Roman C++ 63.9% medium Math
String
11 Container With Most Water C++ 63.6% medium Array
Two Pointers
8 String to Integer (atoi) C++ 20.7% medium Math
String
6 ZigZag Conversion C++ 48.2% medium String
5 Longest Palindromic Substring C++ 31.0% medium String
Dynamic Programming
3 Longest Substring Without Repeating Characters C++ 35.0% medium Hash Table
Two Pointers
String
Sliding Window
1 Two Sum C++ 48.9% easy Array
Hash Table