# |
Title |
Difficulty |
Category |
Sub-Category |
70 |
Easy |
1.Linear
DP |
|
|
121 |
Easy |
1.Linear
DP |
|
|
746 |
Easy |
1.Linear
DP |
|
|
1025 |
Easy |
1.Linear
DP |
|
|
123 |
Hard |
1.Linear
DP |
|
|
552 |
Hard |
1.Linear
DP |
|
|
639 |
Hard |
1.Linear
DP |
|
|
982 |
Hard |
1.Linear
DP |
|
|
1235 |
Hard |
1.Linear
DP |
|
|
1326 |
Hard |
1.Linear
DP |
|
|
1359 |
Hard |
1.Linear
DP |
|
|
1406 |
Hard |
1.Linear
DP |
|
|
1416 |
Hard |
1.Linear
DP |
|
|
1449 |
Hard |
1.Linear
DP |
|
|
1510 |
Hard |
1.Linear
DP |
|
|
91 |
Medium |
1.Linear
DP |
|
|
96 |
Medium |
1.Linear
DP |
|
|
198 |
Medium |
1.Linear
DP |
|
|
279 |
Medium |
1.Linear
DP |
|
|
309 |
Medium |
1.Linear
DP |
|
|
322 |
Medium |
1.Linear
DP |
|
|
338 |
Medium |
1.Linear
DP |
|
|
343 |
Medium |
1.Linear
DP |
|
|
357 |
Medium |
1.Linear
DP |
|
|
376 |
Medium |
1.Linear
DP |
|
|
416 |
Medium |
1.Linear
DP |
|
|
646 |
Medium |
1.Linear
DP |
|
|
714 |
Medium |
1.Linear
DP |
|
|
740 |
Medium |
1.Linear
DP |
|
|
790 |
Medium |
1.Linear
DP |
|
|
935 |
Medium |
1.Linear
DP |
|
|
983 |
Medium |
1.Linear
DP |
|
|
1043 |
Medium |
1.Linear
DP |
|
|
1105 |
Medium |
1.Linear
DP |
|
|
1218 |
Medium |
1.Linear
DP |
|
|
1262 |
Medium |
1.Linear
DP |
|
|
879 |
Hard |
2.Knapsack |
|
|
956 |
Hard |
2.Knapsack |
|
|
1388 |
Hard |
2.Knapsack |
|
|
1402 |
Hard |
2.Knapsack |
|
|
213 |
Medium |
2.Knapsack |
|
|
474 |
Medium |
2.Knapsack |
|
|
494 |
Medium |
2.Knapsack |
|
|
638 |
Medium |
2.Knapsack |
|
|
650 |
Medium |
2.Knapsack |
|
|
801 |
Medium |
2.Knapsack |
|
|
1626 |
Medium |
2.Knapsack |
|
|
188 |
Hard |
3.Multi
Dimensions DP |
|
|
321 |
Hard |
3.Multi
Dimensions DP |
|
|
403 |
Hard |
3.Multi
Dimensions DP |
|
|
410 |
Hard |
3.Multi
Dimensions DP |
|
|
514 |
Hard |
3.Multi
Dimensions DP |
|
|
871 |
Hard |
3.Multi
Dimensions DP |
|
|
920 |
Hard |
3.Multi
Dimensions DP |
|
|
1220 |
Hard |
3.Multi
Dimensions DP |
|
|
1289 |
Hard |
3.Multi
Dimensions DP |
|
|
1320 |
Hard |
3.Multi
Dimensions DP |
|
|
1335 |
Hard |
3.Multi
Dimensions DP |
|
|
1411 |
Hard |
3.Multi
Dimensions DP |
|
|
1420 |
Build Array Where You Can Find The Maximum Exactly K Comparisons |
Hard |
3.Multi
Dimensions DP |
|
1444 |
Hard |
3.Multi
Dimensions DP |
|
|
1473 |
Hard |
3.Multi
Dimensions DP |
|
|
1575 |
Hard |
3.Multi
Dimensions DP |
|
|
120 |
Medium |
3.Multi
Dimensions DP |
|
|
377 |
Medium |
3.Multi
Dimensions DP |
|
|
576 |
Medium |
3.Multi
Dimensions DP |
|
|
688 |
Medium |
3.Multi
Dimensions DP |
|
|
799 |
Medium |
3.Multi
Dimensions DP |
|
|
813 |
Medium |
3.Multi
Dimensions DP |
|
|
931 |
Medium |
3.Multi
Dimensions DP |
|
|
1024 |
Medium |
3.Multi
Dimensions DP |
|
|
1027 |
Medium |
3.Multi
Dimensions DP |
|
|
1140 |
Medium |
3.Multi
Dimensions DP |
|
|
1155 |
Medium |
3.Multi
Dimensions DP |
|
|
1223 |
Medium |
3.Multi
Dimensions DP |
|
|
1621 |
Medium |
3.Multi
Dimensions DP |
|
|
132 |
Hard |
4.Interval
DP |
|
|
312 |
Hard |
4.Interval
DP |
|
|
546 |
Hard |
4.Interval
DP |
|
|
664 |
Hard |
4.Interval
DP |
|
|
903 |
Hard |
4.Interval
DP |
|
|
1000 |
Hard |
4.Interval
DP |
|
|
1478 |
Hard |
4.Interval
DP |
|
|
1547 |
Hard |
4.Interval
DP |
|
|
1563 |
Hard |
4.Interval
DP |
|
|
375 |
Medium |
4.Interval
DP |
|
|
413 |
Medium |
4.Interval
DP |
|
|
486 |
Medium |
4.Interval
DP |
|
|
647 |
Medium |
4.Interval
DP |
|
|
877 |
Medium |
4.Interval
DP |
|
|
1039 |
Medium |
4.Interval
DP |
|
|
1049 |
Medium |
4.Interval
DP |
|
|
1130 |
Medium |
4.Interval
DP |
|
|
1690 |
Medium |
4.Interval
DP |
|
|
691 |
Hard |
5.bit DP |
|
|
847 |
Hard |
5.bit DP |
|
|
1125 |
Hard |
5.bit DP |
|
|
1349 |
Hard |
5.bit DP |
|
|
1434 |
Hard |
5.bit DP |
|
|
1595 |
Hard |
5.bit DP |
|
|
1601 |
Hard |
5.bit DP |
|
|
1655 |
Hard |
5.bit DP |
|
|
1659 |
Hard |
5.bit DP |
|
|
464 |
Medium |
5.bit DP |
|
|
698 |
Medium |
5.bit DP |
|
|
600 |
Hard |
6.Digit DP |
|
|
902 |
Hard |
6.Digit DP |
|
|
1012 |
Hard |
6.Digit DP |
|
|
968 |
Hard |
7.DP on
Trees |
|
|
1373 |
Hard |
7.DP on
Trees |
|
|
1569 |
Hard |
7.DP on
Trees |
|
|
95 |
Medium |
7.DP on
Trees |
|
|
337 |
Medium |
7.DP on
Trees |
|
|
1339 |
Medium |
7.DP on
Trees |
|
|
1367 |
Medium |
7.DP on
Trees |
|
|
1372 |
Medium |
7.DP on
Trees |
|
|
392 |
Easy |
8.String
DP |
|
|
32 |
Hard |
8.String
DP |
|
|
115 |
Hard |
8.String
DP |
|
|
140 |
Hard |
8.String
DP |
|
|
466 |
Hard |
8.String
DP |
|
|
472 |
Hard |
8.String
DP |
|
|
730 |
Hard |
8.String
DP |
|
|
940 |
Hard |
8.String
DP |
|
|
1147 |
Hard |
8.String
DP |
|
|
1278 |
Hard |
8.String
DP |
|
|
1397 |
Hard |
8.String
DP |
|
|
1531 |
Hard |
8.String
DP |
|
|
1639 |
Hard |
8.String
DP |
|
|
131 |
Medium |
8.String
DP |
|
|
139 |
Medium |
8.String
DP |
|
|
467 |
Medium |
8.String
DP |
|
|
712 |
Medium |
8.String
DP |
|
|
1048 |
Medium |
8.String
DP |
|
|
1405 |
Medium |
8.String
DP |
|
|
808 |
Medium |
9.Probability
DP |
|
|
837 |
Medium |
9.Probability
DP |
|
|
1227 |
Medium |
9.Probability
DP |
|
|
53 |
Easy |
10.Classic
DP |
Cadane's Algorithm |
|
152 |
Medium |
10.Classic
DP |
Cadane's Algorithm |
|
898 |
Medium |
10.Classic
DP |
Cadane's Algorithm |
|
978 |
Medium |
10.Classic
DP |
Cadane's Algorithm |
|
1186 |
Medium |
10.Classic
DP |
Cadane's Algorithm |
|
1191 |
Medium |
10.Classic
DP |
Cadane's Algorithm |
|
368 |
Medium |
10.Classic
DP |
Cadane's Algorithm |
|
873 |
Medium |
10.Classic
DP |
Cadane's Algorithm |
|
10 |
Hard |
10.Classic
DP |
LCS |
|
44 |
Hard |
10.Classic
DP |
LCS |
|
72 |
Hard |
10.Classic
DP |
LCS |
|
97 |
Hard |
10.Classic
DP |
LCS |
|
1092 |
Hard |
10.Classic
DP |
LCS |
|
1312 |
Hard |
10.Classic
DP |
LCS |
|
1458 |
Hard |
10.Classic
DP |
LCS |
|
5 |
Medium |
10.Classic
DP |
LCS |
|
516 |
Medium |
10.Classic
DP |
LCS |
|
718 |
Medium |
10.Classic
DP |
LCS |
|
1143 |
Medium |
10.Classic
DP |
LCS |
|
354 |
Hard |
10.Classic
DP |
LIS |
|
960 |
Hard |
10.Classic
DP |
LIS |
|
1187 |
Hard |
10.Classic
DP |
LIS |
|
1671 |
Hard |
10.Classic
DP |
LIS |
|
1691 |
Hard |
10.Classic
DP |
LIS |
|
300 |
Medium |
10.Classic
DP |
LIS |
|
673 |
Medium |
10.Classic
DP |
LIS |
|
174 |
Hard |
10.Classic
DP |
2D Grid Traversal |
|
741 |
Hard |
10.Classic
DP |
2D Grid Traversal |
|
1301 |
Hard |
10.Classic
DP |
2D Grid Traversal |
|
1463 |
Hard |
10.Classic
DP |
2D Grid Traversal |
|
1643 |
Hard |
10.Classic
DP |
2D Grid Traversal |
|
62 |
Medium |
10.Classic
DP |
2D Grid Traversal |
|
63 |
Medium |
10.Classic
DP |
2D Grid Traversal |
|
64 |
Medium |
10.Classic
DP |
2D Grid Traversal |
|
1594 |
Medium |
10.Classic
DP |
2D Grid Traversal |
|
1706 |
Medium |
10.Classic
DP |
2D Grid Traversal |
|
303 |
Easy |
10.Classic
DP |
Cumulative Sum |
|
85 |
Hard |
10.Classic
DP |
Cumulative Sum |
|
363 |
Hard |
10.Classic
DP |
Cumulative Sum |
|
517 |
Hard |
10.Classic
DP |
Cumulative Sum |
|
689 |
Hard |
10.Classic
DP |
Cumulative Sum |
|
1074 |
Hard |
10.Classic
DP |
Cumulative Sum |
|
1537 |
Hard |
10.Classic
DP |
Cumulative Sum |
|
221 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
304 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
764 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
838 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
1139 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
1277 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
1314 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
1423 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
1504 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
1664 |
Medium |
10.Classic
DP |
Cumulative Sum |
|
523 |
Medium |
10.Classic
DP |
Hashmap (SubArray) |
|
1477 |
Medium |
10.Classic
DP |
Hashmap (SubArray) |
|
1546 |
Maximum Number of
Non-Overlapping Subarrays With Sum Equals
Target |
Medium |
10.Classic
DP |
Hashmap (SubArray) |
446 |
Hard |
11. DP +
Alpha (Tricks/DS) |
|
|
975 |
Hard |
11. DP +
Alpha (Tricks/DS) |
|
|
1425 |
Hard |
11. DP +
Alpha (Tricks/DS) |
|
|
1687 |
Hard |
11. DP +
Alpha (Tricks/DS) |
|
|
629 |
Hard |
12.Insertion
DP |
|
|
943 |
Hard |
13.Graph
DP |
|
|
787 |
Medium |
13.Graph
DP |
|
|
87 |
Hard |
14.Memoization |
|
|
1240 |
Hard |
14.Memoization |
|
|
1269 |
Hard |
14.Memoization |
|
|
1340 |
Hard |
14.Memoization |
|
|
1553 |
Hard |
14.Memoization |
|
|
1654 |
Medium |
14.Memoization |
|
|
1483 |
Hard |
15. Binary
Lifting |
|
|
818 |
Hard |
16. Math |
|
|
887 |
Hard |
16. Math |
|
|
964 |
Hard |
16. Math |
|
|
1363 |
Hard |
16. Math |
|
|
1611 |
Hard |
16. Math |
|
|
264 |
Medium |
16. Math |
|
|
1641 |
Medium |
16. Math |
|
Sunday, January 3, 2021
All Public Dynamic Programming (DP) Problems at LeetCode
Labels:
dp,
leetcode,
problemlist
Subscribe to:
Post Comments (Atom)
i never done dp, should i follow this list??
ReplyDeleteThese are nice articles for starters:
Deletehttps://leetcode.com/discuss/general-discussion/458695/Dynamic-Programming-Patterns
https://leetcode.com/discuss/general-discussion/662866/DP-for-Beginners-Problems-or-Patterns-or-Sample-Solutions
hii
DeleteI would like to thank you for framing this table with difficulty levels.
ReplyDeleteUsing this blog as my primary source for starting DP
Thank you and Keep Going!!
ReplyDeleteWould be great if you can also share the solutions you have submitted
ReplyDeleteYou can see tons of nice solutions from 'Discuss' tab in each problem!
DeleteHi Chuka thanks for providing this resource. I have created list on leetcode itselt and one can refer here https://leetcode.com/discuss/general-discussion/1050391/Must-do-Dynamic-programming-Problems-Catefory-wise
ReplyDeleteThis comment has been removed by the author.
DeleteHey, can you please help me so as I can get the intuition behind these problems, as I have tried many times but couldn't do a problem on my own without referring the editorial.
ReplyDeleteRead this....and never be afraid of DP https://www.quora.com/Are-there-any-good-resources-or-tutorials-for-dynamic-programming-DP-besides-the-TopCoder-tutorial/answer/Michal-Danil%C3%A1k
DeleteRead this.... https://www.quora.com/Are-there-any-good-resources-or-tutorials-for-dynamic-programming-DP-besides-the-TopCoder-tutorial/answer/Michal-Danil%C3%A1k
ReplyDeleteCan you tell me how to follow this list as i am not beginer but still struggle to much in dp just wanna know how can i follow this so that i can get through smoothly to harder ones
ReplyDeleteAppreciate your efforts. What is the last question number in this list? Will you be adding questions as they get added on leetcode?
ReplyDelete