You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ I found it makes sense to solve similar problems together, so that we can recogn
24
24
### Recursion
25
25
| Id | Name | Difficulty |||
26
26
| ---: | --- | :---: | :---: | --- |
27
-
| 726 |[Number of Atoms](https://leetcode.com/problems/number-of-atoms"Number of Atoms")| ★★★ |[736](https://leetcode.com/problems/parse-lisp-expression/"736")|[394](https://zxi.mytechroad.com/blog/recursion/leetcode-394-decode-string/"394")|
27
+
| 726 |[Number of Atoms](https://leetcode.com/problems/number-of-atoms"Number of Atoms")| ★★★ |[736](https://leetcode.com/problems/parse-lisp-expression/"736")|[394](https://leetcode.com/problems/decode-string/"394")|
28
28
| 856 |[Score of Parentheses](https://leetcode.com/problems/score-of-parentheses/"Score of Parentheses")| ★★★ |||
29
29
30
30
### Divide and Conquer
@@ -84,6 +84,7 @@ I found it makes sense to solve similar problems together, so that we can recogn
84
84
| 33 |[Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array"Search in Rotated Sorted Array")| ★★★ |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/"81")|[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/"153")|[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii"154")|[162](https://leetcode.com/problems/find-peak-element"162")|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/"852")| rotated / peak |
| 74 |[Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix/"Search a 2D Matrix")| ★★★ |||||| treat 2d as 1d |
87
+
| 875 |[Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/"Koko Eating Bananas")| ★★★ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/"1011")||||| guess ans and check |
87
88
| 378 |[Kth Smallest Element in a Sorted Matrix](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/"Kth Smallest Element in a Sorted Matrix")| ★★★ |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/"668")||||| kth + matrix |
88
89
| 778 |[Swim in Rising Water](https://leetcode.com/problems/swim-in-rising-water/"Swim in Rising Water")| ★★★ |[174](https://leetcode.com/problems/dungeon-game/"174")|[875](https://leetcode.com/problems/koko-eating-bananas/"875")|||| guess ans and check |
89
90
| 4 |[Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/"Median of Two Sorted Arrays")| ★★★★ |||||||
@@ -114,6 +115,9 @@ I found it makes sense to solve similar problems together, so that we can recogn
114
115
| 847 |[Shortest Path Visiting All Nodes](https://leetcode.com/problems/shortest-path-visiting-all-nodes/"Shortest Path Visiting All Nodes")| ★★★★ |[815](https://leetcode.com/problems/bus-routes/"815")|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/"864")|[924](https://leetcode.com/problems/minimize-malware-spread/"924")|| BFS |
115
116
| 943 |[Find the Shortest Superstring](https://leetcode.com/problems/find-the-shortest-superstring/"Find the Shortest Superstring")| ★★★★ |[980](https://leetcode.com/problems/unique-paths-iii/"980")|[996](https://leetcode.com/problems/number-of-squareful-arrays/"996")||| Hamiltonian path (DFS / DP) |
116
117
| 959 |[Regions Cut By Slashes](https://leetcode.com/problems/regions-cut-by-slashes/"Regions Cut By Slashes")| ★★★★ ||||| union find / grid + connected component |
| 1192 |[Critical Connections in a Network](https://leetcode.com/problems/critical-connections-in-a-network/"Critical Connections in a Network")| ★★★★ ||||| Tarjan |
120
+
117
121
118
122
### Dynamic Programming
119
123
| Id | Name | Difficulty ||||||| Comments |
@@ -134,15 +138,24 @@ I found it makes sense to solve similar problems together, so that we can recogn
134
138
| 62 |[Unique Paths](https://leetcode.com/problems/unique-paths"Unique Paths")| ★★ |[63](https://leetcode.com/problems/unique-paths-ii"63")|[64](https://leetcode.com/problems/minimum-path-sum"64")|[120](https://leetcode.com/problems/triangle"120")|[174](https://leetcode.com/problems/dungeon-game"174")|[931](https://leetcode.com/problems/minimum-falling-path-sum/"931")|| I: O(mn), S = O(mn), T = O(mn) |
| 688 |[Knight Probability in Chessboard](https://leetcode.com/problems/knight-probability-in-chessboard/"Knight Probability in Chessboard")| ★★★ |[576](https://leetcode.com/problems/out-of-boundary-paths/"576")|[935](https://leetcode.com/problems/knight-dialer/"935")||||| I: O(mn) + k, S = O(kmn) T = O(kmn) |
141
+
| 322 |[Coin Change](https://leetcode.com/problems/reconstruct-itinerary/"Coin Change")| ★★★ |[377](https://leetcode.com/problems/combination-sum-iv/"377")|[416](https://leetcode.com/problems/partition-equal-subset-sum/"416")|[494](https://leetcode.com/problems/target-sum/"494")|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/"1043")|[1049](https://leetcode.com/problems/last-stone-weight-ii/"1049")|| I: O(n) + k, S = O(n), T = O(kn) |
| 813 |[Largest Sum of Averages](https://leetcode.com/problems/largest-sum-of-averages/"Largest Sum of Averages")| ★★★★ |[1278](https://leetcode.com/problems/palindrome-partitioning-iii/"1278")|[1335](https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule/"1335")|[410](https://leetcode.com/problems/split-array-largest-sum/"410")|||| I: O(n) + k<br/>S = O(n*k), T = O(kn^2) |
144
+
| 1223 |[Dice Roll Simulation](https://leetcode.com/problems/dice-roll-simulation/"Dice Roll Simulation")| ★★★★ ||||||| I: O(n) + k + p<br/>S = O(k*p), T = O(n^2kp) |
145
+
| 312 |[Burst Balloons](https://leetcode.com/problems/burst-balloons/"Burst Balloons")| ★★★★ |[664](https://leetcode.com/problems/strange-printer/"664")|[1024](https://leetcode.com/problems/video-stitching/"1024")|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/"1039")|[1140](https://leetcode.com/problems/stone-game-ii/"1140")|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/"1130")|| I: O(n), S = O(n^2), T = O(n^3) |
146
+
| 741 |[Cherry Pickup](https://leetcode.com/problems/cherry-pickup/"Cherry Pickup")| ★★★★ ||||||| I: O(n^2), S = O(n^3), T = O(n^3) |
147
+
| 546 |[Remove Boxes](https://leetcode.com/problems/remove-boxes/"Remove Boxes")| ★★★★★ ||||||| I: O(n), S = O(n^3), T = O(n^4) |
148
+
| 943 |[Find the Shortest Superstring](https://leetcode.com/problems/find-the-shortest-superstring/"Find the Shortest Superstring")| ★★★★★ |[980](https://leetcode.com/problems/unique-paths-iii/"980")|[996](https://leetcode.com/problems/number-of-squareful-arrays/"996")|[1125](https://leetcode.com/problems/smallest-sufficient-team/"1125")|||| I: O(n)<br/>S = O(n*2^n), T = (n^2*2^n) |
This [list](https://docs.google.com/spreadsheets/d/1SbpY-04Cz8EWw3A_LBUmDEXKUMO31DBjfeMoA0dlfIA/edit#gid=126913158) is made by **huahua**, I found this on his [youtube](https://www.youtube.com/user/xxfflower/videos).
158
+
This [list](https://docs.google.com/spreadsheets/d/1SbpY-04Cz8EWw3A_LBUmDEXKUMO31DBjfeMoA0dlfIA/edit#gid=126913158) is made by **huahua**, I found this on his [youtube](https://www.youtube.com/user/xxfflower/videos). Please visit his [website](https://zxi.mytechroad.com/blog/leetcode-problem-categories/) for more.
0 commit comments