Skip to content

bryceustc/LeetCode_Note

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

LeetCode

自己刷LeetCode整理的一些题解笔记,有什么错误欢迎指出。

带♣为力扣2020.3.1开始的每日一题打卡

LeetCode 题解(持续更新中...)

# Title Solution Difficulty
1 Two Sum C++, Python Easy
2♣ Add Two Numbers C++, Python Medium
3♣ Longest Substring Without Repeating Characters C++, Python Medium
4♣ Median of Two Sorted Arrays C++, Python Hard
5♣ Longest-Palindromic-Substring C++, Python Medium
6 Zigzag-Conversion C++, Python Medium
7 Reverse-Integer C++, Python Easy
8♣ String-To-Integer-Atoi C++, Python Medium
9 Palindrome-Number C++, Python Easy
10♣ Regular-Expression-Matching C++, Python Hard
11♣ Container-With-Most-Water C++, Python Medium
12 Integer-To-Roman C++, Python Medium
13 Roman-To-Integer C++, Python Easy
14♣ Longest-Common-Prefix C++, Python Easy
15♣ 3Sum C++, Python Medium
16♣ 3Sum-Closest C++, Python Medium
17 Letter-Combinations-Of-A-Phone-Number C++, Python Medium
18♣ 4Sum C++, Python Medium
19 Remove-Nth-Node-From-End-Of-List C++, Python Medium
20♣ ♣ Valid-Parentheses C++, Python Easy
21♣ Merge-Two-Sorted-Lists C++, Python Easy
22♣ Generate-Parentheses C++, Python Medium
23♣ Merge-K-Sorted-Lists C++, Python Hard
24 Swap-Nodes-In-Pairs C++, Python Medium
25♣ Reverse-Nodes-In-K-Group C++, Python Hard
26 Remove-Duplicates-From-Sorted-Array C++, Python Easy
27 Remove-Element C++, Python Easy
28 Implement-Strstr C++, Python Easy
29 Divide-Two-Integers C++, Python Medium
30 Substring-With-Concatenation-Of-All-Words C++, Python Hard
31♣ Next-Permutation C++, Python Medium
32♣ Longest-Valid-Parentheses C++, Python Hard
33♣ Search-In-Rotated-Sorted-Array C++, Python Medium
34♣ Find-First-And-Last-Position-Of-Element-In-Sorted-Array C++, Python Medium
35 Search-Insert-Position C++, Python Easy
36 Valid-Sudoku C++, Python Medium
37 Sudoku-Solver C++, Python Hard
38 Count-And-Say C++, Python Easy
39♣ Combination-Sum C++, Python Medium
40♣ Combination-Sum-II C++, Python Medium
41♣ First-Missing-Positive C++, Python Hard
42♣ Trapping-Rain-Water C++, Python Hard
43♣ Multiply-Strings C++, Python Medium
44 Wildcard-Matching C++, Python Hard
45♣ Jump-Game-II C++, Python Hard
46♣ Permutations C++, Python Medium
47♣ Permutations-II C++, Python Medium
48 Rotate-Image C++, Python Medium
49 Group-Anagrams C++, Python Medium
50♣ PowX-N C++, Python Medium
51♣ N-Queens C++ Haard
53♣ Maximum-Subarray C++, Python Easy
54 Spiral-Matrix C++, Python Medium
55♣ Jump-Game C++, Python Medium
56♣ Merge-Intervals C++, Python Medium
57 Insert-Intervals C++, Python Hard
58 Length-Of-Last-Word C++, Python Easy
59 Spiral-Matrix-II C++, Python Medium
60♣ Permutation-Sequence C++, Python Medium
61 Rotate-List C++, Python Medium
62♣ Unique-Paths C++, Python Medium
63 Unique-Paths-II C++, Python Medium
64 Minimum-Path-Sum C++, Python Medium
65 Valid-Number C++, Python Hard
66♣ Plus-One C++ Easy
69♣ Sqrtx C++ Easy
70♣ Climbing-Stairs C++, Python Easy
72♣ Edit-Distance C++ Hard
74 Search-A-2D-Matrix C++, Python Medium
76♣ Minimum-Window-Substring C++ Hard
77♣ Combinations C++ Medium
78♣ Subsets C++ Medium
79♣ Word-Search C++, Python Medium
81 Search-In-Rotated-Sorted-Array C++ Medium
82 Remove-Duplicates-From-Sorted-List-II C++, Python Medium
83 Remove-Duplicates-From-Sorted-List C++, Python Easy
84♣ Largest-Rectangle-In-Histogram C++, Python Hard
85♣ Maximal-Rectangle C++ Hard
88 Merge-Sorted-Array C++,Python Easy
90♣ Subsets-II C++ Medium
93 Restore-Ip-Addresses C++ Medium
94 Binary-Tree-Inorder-Traversal C++, Python Medium
98♣ Validate-Binary-Search-Tree C++ Medium
100 Same-Tree C++ Easy
101♣ Symmetric-Tree C++, Python Easy
102♣ Binary-Tree-Level-Order-Traversal C++, Python Medium
103 Binary-Tree-Zigzag-Level-Order-Traversal C++, Python Medium
104 Maximum-Depth-Of-Binary-Tree C++, Python Easy
105♣ Construct-Binary-Tree-From-Preorder-And-Inorder-Traversal C++, Python Medium
106♣ Construct-Binary-Tree-From-Ineorder-And-Postorder-Traversal C++, Python Medium
108♣ Convert-Sorted-Array-To-Binary-Search-Tree C++ Easy
109♣ Convert-Sorted-List-To-Binary-Search-Tree C++ Medium
110♣ Balanced-Binary-Tree C++, Python Easy
111♣ Minimum-Depth-Of-Binary-Tree C++ Easy
112 Path-Sum C++, Python Easy
113 Path-Sum-II C++, Python Medium
114 Flatten-Binary-Tree-To-Linked-List C++ Medium
118♣ Pascals-Triangle C++ Easy
120 Triangle C++, Python Meidum
121♣ Best-Time-To-Buy-And-Sell-Stock C++, Python Easy
122♣ Best-Time-To-Buy-And-Sell-Stock-II C++, Python Easy
123♣ Best-Time-To-Buy-And-Sell-Stock-III C++, Python Hard
124♣ Binary-Tree-Maximum-Path-Sum C++ Hard
125♣ Valid-Palindrome C++ Easy
126♣ Word-Ladder-II C++ Hard
128♣ Longest-Consecutive-Sequence C++ Hard
130♣ Surrounded-Regions C++ Medium
133♣ Clone-Graph C++ Medium
136♣ Single-Number C++, Python Easy
139♣ Word-Break C++ Medium
141♣ Linked-List-Cycle C++, Python Easy
142 Linked-List-Cycle-II C++, Python Medium
144 Binary-Tree-Preorder-Traversal C++, Python Medium
145 Binary-Tree-Postorder-Traversal C++, Python Medium
146♣ LRU-Cache C++ Medium
150 Evaluate-Reverse-Polish-Notation C++ Medium
151♣ Reverse-Words-In-A-String C++, Python Medium
152♣ Maximum-Product-Subarray C++ Medium
153 Find-Minimum-In-Rotated-Sorted-Array C++, Python Medium
154 Find-Minimum-In-Rotated-Sorted-Array-II C++ Medium
155♣ Min-Stack C++, Python Easy
160 Intersection-Of-Two-Linked-Lists C++, Python Easy
162 Find-Peak-Element C++ Medium
167♣ Two-Sum-II-Input-Array-Is-Sorted C++, Python Easy
169♣ Majority-Element C++, Python Easy
179 Largest-Number C++, Python Medium
188♣ Best-Time-To-Buy-And-Sell-Stock-IV C++, Python Hard
189♣ Rotate-Array C++ Easy
191 Number-Of-1-Bits C++, Python Easy
198♣ House-Robber C++, Python Easy
199♣ Binary-Tree-Right-Side-View C++ Medium
200♣ Number-Of-Islands C++, Python Medium
202♣ Happy-Number C++ Easy
203 Remove-Linked-List-Elements C++, Python Easy
204♣ Count-Primes C++) Easy
205♣ Isomorphic-Strings C++) Easy
206♣ Reverse-Linked-List C++, Python Easy
209♣ Minimum-Size-Subarray-Sum C++, Python Medium
210♣ Course-Schedule-II C++, Python Medium
213 House-Robber-II C++, Python Easy
215♣ Kth-Largest-Element-In-An-Array C++, Python Medium
216♣ Combination-Sum-III C++ Medium
217♣ Contains-Duplicate C++ Easy
221♣ Maximal-Square C++, Python Medium
225♣ Implement-Stack-Using-Queues C++, Python Easy
226 Invert-Binary-Tree C++, Python Easy
228 Summary-Ranges C++ Easy
233 Number-Of-Digit-One C++, Python Hard
234 Palindrome-Linked-List C++ Easy
235♣ Lowest-Common-Ancestor-Of-A-Binary-Search-Tree C++ Easy
236♣ Lowest-Common-Ancestor-Of-A-Binary-Tree C++ Medium
237 Delete-Node-In-A-Linked-List C++, Python Easy
238♣ Product-Of-Array-Except-Self C++ Medium
239♣ Sliding-Window-Maximum C++ Medium
240 Search-A-2D-Matrix-II C++, Python Medium
257 Binary-Tree-Paths C++ Easy
260 Single-Number-III C++, Python Medium
263 Ugly-Number C++, Python Easy
264 Ugly-Number-II C++, Python Medium
268 Missing-Number C++, Python Easy
275 H-Index-II C++ Medium
279 Perfect-Squares C++, Python Medium
283 Move-Zeroes C++, Python Easy
287♣ Find-The-Duplicate-Number C++, Python Medium
289♣ Game-Of-Life C++ Medium
290♣ Word-Pattern C++ Easy
295 Find-Median-From-Data-Stream C++, Python Hard
297♣ Serialize-And-Deserialize-Binary-Tree C++, Python Hard
300 Longest-Increasing-Subsequence C++, Python Medium
309♣ Best-Time-To-Buy-And-Sell-Stock-With-Cooldown C++, Python Medium
315♣ Count-Of-Smaller-Numbers-After-Self C++ Hard
316♣ Remove-Duplicate-Letters C++) Medium
321♣ Create-Maximum-Number C++) Medium
322♣ Coin-Change C++, Python Medium
337 House-Robber-III C++, Python Medium
343 Integer-Break C++, Python Medium
347♣ Top-K-Frequent-Elements C++ Medium
349♣ Intersection-Of-Two-Arrays C++ Easy
350♣ Intersection-Of-Two-Arrays-II C++ Easy
354 Russian-Doll-Envelopes C++, Python Hard
355♣ Design-Twitter C++ Medium
365♣ Water-And-Jug-Problem C++, Python Medium
374 Guess-Number-Higher-Or-Lower C++ Easy
376♣ Wiggle-Subsequence C++ Medium
378♣ Kth-Smallest-Element-In-A-Sorted-Matrix C++ Medium
387♣ First-Unique-Character-In-A-String C++, Python Easy
389♣ Find-The-Difference C++ Easy
394♣ Decode-String C++ Medium
400 Nth-Digit C++, Python Meidum
402♣ Remove-K-Digits C++ Medium
409♣ Longest-Palindrome C++, Python Easy
410 Split-Array-Largest-Sum C++ Hard
415 Add-Strings C++, Python Easy
426 Convert-Binary-Search-Tree-To-Sorted-Doubly-Lnked-List C++, Python Medium
435♣ Non-Overlapping-Intervals C++ Medium
438 Find-All-Anagrams-In-A-String C++ Medium
445♣ Add-Two-Numbers-II C++ Medium
455♣ Assign-Cookies C++ Easy
459♣ Repeated-Substring-Pattern C++ Easy
460♣ LFU-Cache C++ Hard
463♣ Island-Perimeter C++ Easy
466♣ Count-The-Repetitions C++ Hard
470♣ Implement-Rand10-Using-Rand7 C++ Medium
496 Next-Greater-Element-I C++, Python Easy
501 Find-Mode-In-Binary-Search-Tree C++ Easy
503 Next-Greater-Element-II C++, Python Meidum
516 Longest-Palindromic-Subsequence C++, Python Medium
518 Coin-Change-II C++ Medium
542♣ 01-Matrix C++ Medium
543♣ Diameter-Of-Binary-Tree C++, Python Easy
546♣ Remove-Boxes C++ Hard
556 Next-Greater-Element-III C++, Python Medium
557♣ Reverse-Words-In-A-String-III C++ Easy
560♣ Subarray-Sum-Equals-K C++ Medium
563 Binary-Tree-Tilt C++ Easy
567 Permutation-In-String C++ Medium
572♣ Subtree-Of-Another-Tree C++ Easy
605♣ Can-Place-Flowers C++ Easy
617♣ Merge-Two-Binary-Trees C++ Easy
621♣ Task-Scheduler C++ Medium
647♣ Palindromic-Substrings C++ Medium
649♣ Dota2-Senate C++ Medium
657♣ Robot-Return-To-Origin C++ Easy
659♣ Split-Array-Into-Consecutive-Subsequences C++) Medium
674 Longest-Continuous-Increasing-Subsequence C++, Python Easy
695♣ Max-Area-Of-Island C++, Python Easy
696♣ Count-Binary-Substrings C++ Easy
703 Kth-Largest-Element-In-A-Stream C++ Easy
704 Binary-Search C++ Easy
714♣ Best-Time-To-Buy-And-Sell-Stock-With-Transaction-Fee C++, Python Medium
718♣ Maximum-Length-Of-Repeated-Subarray C++ Medium
733♣ Flood-Fill C++ Medium
738♣ Monotone-Increasing-Digits C++ Medium
739 Daily-Temperatures C++, Python Medium
746♣ Min-Cost-Climbing-Stairs C++ Medium
771♣ Jewels-And-Stones C++ Easy
785♣ Is-Graph-Bipartite C++ Medium
796 Rotate-String C++, Python Easy
820♣ Short-Encoding-Of-Words C++, Python Easy
830♣ Positions-Of-Large-Groups C++ Easy
836♣ Rectangle-Overlap C++, Python Easy
842♣ Split-Array-Into-Fibonacci-Sequence C++ Medium
846 Hand-Of-Straights C++, Python Medium
852♣ Peak-Index-In-A-Mountain-Array C++ Easy
860♣ Lemonade-Change C++ Easy
861♣ Score-After-Flipping-Matrix C++ Medium
876♣ Middle-Of-The-Linked-List C++, Python Easy
887♣ Super-Egg-Drop C++ Hard
892♣ Surface-Area-Of-3D-Shapes C++ Easy
912♣ Sort-An-Array C++ Medium
914♣ X-Of-A-Kind-In-A-Deck-Of-Cards C++, Python Easy
941♣ Valid-Mountain-Array C++ Easy
945♣ Minimum-Increment-To-Make-Array-Unique C++, Python Medium
946 Validate-Stack-Sequences C++, Python Medium
974♣ Subarray-Sums-Divisible-By-K C++ Medium
977 Squares-Of-A-Sorted-Array C++ Easy
983♣ Minimum-Cost-For-Tickets C++ Medium
983♣ Minimum-Cost-For-Tickets C++ Medium
986 Interval-List-Intersections C++ Medium
999♣ Available-Captures-For-Rook C++, Python Easy
1013♣ Partition-Array-Into-Three-Parts-With-Equal-Sum C++, Python Easy
1014♣ Best-Sightseeing-Pair C++ Medium
1025♣ Divisor-Game C++ Easy
1028♣ Recover-A-Tree-From-Preorder-Traversal C++ Hard
1046♣ Last-Stone-Weight C++, Python Easy
1049 Last-Stone-Weight-II C++, Python Medium
1071♣ Greatest-Common-Divisor-Of-Strings C++, Python Easy
1095♣ Find-In-Mountain-Array C++ Hard
1103♣ Distribute-Candies-To-People C++, Python Easy
1143 Longest-Common-Subsequence C++, Python Medium
1160♣ Find-Words-That-Can-Be-Formed-By-Characters C++, Python Easy
1162♣ As-Far-From-Land-As-Possible C++, Python Medium
1248♣ Count-Number-Of-Nice-Subarrays C++ Medium
1300♣ Sum-Of-Mutated-Array-Closest-To-Target C++ Medium
1360 Number-Of-Days-Between-Two-Dates C++ Easy
1365♣ How-Many-Numbers-Are-Smaller-Than-The-Current-Number C++ Easy
1371 Find-The-Longest-Substring-Containing-Vowels-In-Even-Counts C++ Medium
1431 Kids-With-The-Greatest-Number-Of-Candies C++ Easy
5178 Four-Divisors C++ Medium
5345 Rank-Teams-By-Votes C++ Medium
面试题01.06♣ 字符串压缩 C++,Python Easy
面试题01.07♣ 旋转矩阵 C++ Meidum
面试题02.01♣ 移除重复节点 C++ Easy
面试题08.11♣ 旋转矩阵 C++ Meidum
面试题16.11♣ 跳水板 C++ Easy
面试题16.03♣ 交点 C++ Hard
面试题17.06♣ 按摩师 C++,Python Easy
面试题09♣ 用两个栈实现队列 C++ Easy
面试题10♣ 合并排序的数组 C++,Python Easy
面试题13♣ 机器人的运动范围 C++ Medium
面试题40♣ 最小的k个数 C++,Python Easy
面试题46♣ 把数字翻译成字符串 C++ Medium
面试题51♣ 数组中的逆序对 C++ Hard
面试题56♣ 数组中数字出现的次数 C++ Medium
面试题57♣ 和为s的连续正数序列 C++,Python Easy
面试题59♣ 队列的最大值 C++,Python Medium
面试题62♣ 圆圈中最后剩下的数字 C++ Medium
面试题64♣ 求1+2+…+n C++ Medium
笔试题1♣ 提取不重复的整数 C++ Easy
笔试题2♣ 病毒检测 C++ Medium
笔试题3♣ 考试成绩 C++ Medium
笔试题4♣ 石头碰撞 C++ Medium

About

刷LeetCode题解及笔记

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published