dynamic_programming

264.Ugly-Number-IIarrow-up-right (H-) 313.Super-Ugly-Numberarrow-up-right (H-) 091.Decode-Waysarrow-up-right (M) 639.Decode-Ways-IIarrow-up-right (H) 634.Find-the-Derangement-of-An-Arrayarrow-up-right (H) 823.Binary-Trees-With-Factors (M+) 221.Maximal-Squarearrow-up-right (H-) 1277.Count-Square-Submatrices-with-All-Onesarrow-up-right (M+) 600.Non-negative-Integers-without-Consecutive-Onesarrow-up-right (H) 656.Coin-Patharrow-up-right (H-) 053.Maximum-Subarrayarrow-up-right (E+) 152.Maximum-Product-Subarrayarrow-up-right (M+) 818.Race-Cararrow-up-right (H) 377.Combination-Sum-IVarrow-up-right (M) 837.New-21-Gamearrow-up-right (H-) 887.Super-Egg-Droparrow-up-right (H) 1884.Egg-Drop-With-2-Eggs-and-N-Floorsarrow-up-right (H-) 920.Number-of-Music-Playlistsarrow-up-right (H) 940.Distinct-Subsequences-IIarrow-up-right (H) 1987.Number-of-Unique-Good-Subsequencesarrow-up-right (H) 446.Arithmetic-Slices-II-Subsequencearrow-up-right (H-) 1027.Longest-Arithmetic-Sequencearrow-up-right (M+) 1269.Number-of-Ways-to-Stay-in-the-Same-Place-After-Some-Stepsarrow-up-right (M+) 1316.Distinct-Echo-Substringsarrow-up-right (M+) 1420.Build-Array-Where-You-Can-Find-The-Maximum-Exactly-K-Comparisonsarrow-up-right (H-) 1444. Number of Ways of Cutting a Pizza (TBD) 1531.String-Compression-IIarrow-up-right (H+) 1575.Count-All-Possible-Routesarrow-up-right (M+) 1621.Number-of-Sets-of-K-Non-Overlapping-Line-Segmentsarrow-up-right (H) 1639.Number-of-Ways-to-Form-a-Target-String-Given-a-Dictionaryarrow-up-right (H-) 1692.Count-Ways-to-Distribute-Candiesarrow-up-right (H-) 1787.Make-the-XOR-of-All-Segments-Equal-to-Zeroarrow-up-right (H) 1872.Stone-Game-VIIIarrow-up-right (H-) 1900.The-Earliest-and-Latest-Rounds-Where-Players-Competearrow-up-right (H)

  • Google DP: https://expl.ai/USLKFRP

1955.Count-Number-of-Special-Subsequencesarrow-up-right (H-)

ๅŸบๆœฌๅž‹ I

198.House-Robberarrow-up-right (E) 213.House-Robber-IIarrow-up-right (M+) 1388.Pizza-With-3n-Slicesarrow-up-right (H-) 276.Paint-Fencearrow-up-right (H-) 265.Paint-House-IIarrow-up-right (H) 1473.Paint-House-IIIarrow-up-right (H-) 376.Wiggle-Subsequencearrow-up-right (H-) 123.Best-Time-to-Buy-and-Sell-Stock-IIIarrow-up-right (M+) 188.Best-Time-to-Buy-and-Sell-Stock-IVarrow-up-right (H) 309.Best-Time-to-Buy-and-Sell-Stock-with-Cooldownarrow-up-right (H-) 714.Best-Time-to-Buy-and-Sell-Stock-with-Transaction-Feearrow-up-right (M+) 514.Freedom-Trailarrow-up-right (H-) 740.Delete-and-Earnarrow-up-right (H-) 552.Student-Attendance-Record-IIarrow-up-right (H) 801.Minimum-Swaps-To-Make-Sequences-Increasingarrow-up-right (M) 1223.Dice-Roll-Simulationarrow-up-right (H-) 1262.Greatest-Sum-Divisible-by-Threearrow-up-right (M+) 1363.Largest-Multiple-of-Threearrow-up-right (H) 1419.Minimum-Number-of-Frogs-Croakingarrow-up-right (M) 1548.The-Most-Similar-Path-in-a-Grapharrow-up-right (M+) 1746.Maximum-Subarray-Sum-After-One-Operationarrow-up-right (M+) 1824.Minimum-Sideway-Jumpsarrow-up-right (M) 1839.Longest-Substring-Of-All-Vowels-in-Orderarrow-up-right (M) 1883.Minimum-Skips-to-Arrive-at-Meeting-On-Timearrow-up-right (H)

ๅŸบๆœฌๅž‹ II

368.Largest-Divisible-Subsetarrow-up-right (M+) 300.Longest-Increasing-Subsequencearrow-up-right (M+) 673.Number-of-Longest-Increasing-Subsequencearrow-up-right (M+) 960.Delete-Columns-to-Make-Sorted-IIIarrow-up-right (H-) 983.Minimum-Cost-For-Ticketsarrow-up-right (H-) 1043.Partition-Array-for-Maximum-Sumarrow-up-right(M+) 1105.Filling-Bookcase-Shelvesarrow-up-right (H-) 1959.minimum-total-space-wasted-with-k-resizing-operationsarrow-up-right (H-) 1416.Restore-The-Arrayarrow-up-right (M+) 1546.Maximum-Number-of-Non-Overlapping-Subarrays-With-Sum-Equals-Targetarrow-up-right (M+) 1626.Best-Team-With-No-Conflictsarrow-up-right (M) 1691.Maximum-Height-by-Stacking-Cuboidsarrow-up-right (H)

่ตฐ่ฟทๅฎซๅž‹

120.Trianglearrow-up-right (E) 174.Dungeon-Gamearrow-up-right (H-) 741.Cherry-Pickuparrow-up-right (H-) 1463.Cherry-Pickup-IIarrow-up-right (M) 576.Out-of-Boundary-Pathsarrow-up-right (H) 931.Minimum-Falling-Path-Sumarrow-up-right (M) 1289.Minimum-Falling-Path-Sum-IIarrow-up-right (M+) 1301.Number-of-Paths-with-Max-Scorearrow-up-right (M+) 1594.Maximum-Non-Negative-Product-in-a-Matrixarrow-up-right (M)

่ƒŒๅŒ…ๅž‹

322.Coin-Changearrow-up-right (M) 416.Partition-Equal-Subset-Sumarrow-up-right (M+) 518.Coin-Change-2arrow-up-right (H-) 474.Ones-and-Zeroesarrow-up-right (H-) 494.Target-Sumarrow-up-right (M+) 805.Split-Array-With-Same-Averagearrow-up-right (H) 879.Profitable-Schemesarrow-up-right (M+) 956.Tallest-Billboardarrow-up-right (H) 1049.Last-Stone-Weight-IIarrow-up-right (H-) 1449.Form-Largest-Integer-With-Digits-That-Add-up-to-Targetarrow-up-right (H-) 1981.Minimize-the-Difference-Between-Target-and-Chosen-Elementsarrow-up-right (M+)

้”ฎ็›˜ๅž‹

650.2-Keys-Keyboardarrow-up-right (M+) 651.4-Keys-Keyboardarrow-up-right (M+) 935.Knight-Dialerarrow-up-right (M) 1320.Minimum-Distance-to-Type-a-Word-Using-Two-Fingersarrow-up-right (H)

To Do or Not To Do

487.Max-Consecutive-Ones-IIarrow-up-right (H-) 1186.Maximum-Subarray-Sum-with-One-Deletionarrow-up-right (H-) 1187.Make-Array-Strictly-Increasingarrow-up-right (H-) 1909.Remove-One-Element-to-Make-the-Array-Strictly-Increasingarrow-up-right (H-)

ๅŒบ้—ดๅž‹ I

132.Palindrome-Partitioning-IIarrow-up-right (H-) 410.Split-Array-Largest-Sumarrow-up-right (H) 813.Largest-Sum-of-Averagesarrow-up-right (H-) 1278.Palindrome-Partitioning-IIIarrow-up-right (H) 1335.Minimum-Difficulty-of-a-Job-Schedulearrow-up-right (M+) 1478.Allocate-Mailboxesarrow-up-right (H) 1977.Number-of-Ways-to-Separate-Numbersarrow-up-right (H)

ๅŒบ้—ดๅž‹ II

131.Palindrome-Partitioningarrow-up-right (M+) 312.Burst-Balloonsarrow-up-right (H-) 375.Guess-Number-Higher-or-Lower-IIarrow-up-right (H) 471.Encode-String-with-Shortest-Lengtharrow-up-right (H) 516.Longest-Palindromic-Subsequencearrow-up-right (H-) 546.Remove-Boxesarrow-up-right (H+) 664.Strange-Printerarrow-up-right (H) 730.Count-Different-Palindromic-Subsequencesarrow-up-right (H) 1000.Minimum-Cost-to-Merge-Stonesarrow-up-right (H) 1130.Minimum-Cost-Tree-From-Leaf-Valuesarrow-up-right (M+) 1246.Palindrome-Removalarrow-up-right (H) 1039.Minimum-Score-Triangulation-of-Polygonarrow-up-right (H) 1547.Minimum-Cost-to-Cut-a-Stickarrow-up-right (M) 1682.Longest-Palindromic-Subsequence-IIarrow-up-right (H) 1690.Stone-Game-VIIarrow-up-right (H-) 1745.Palindrome-Partitioning-IVarrow-up-right (M) 1770.Maximum-Score-from-Performing-Multiplication-Operationsarrow-up-right (H-)

ๅŒๅบๅˆ—ๅž‹

010.Regular-Expression-Matchingarrow-up-right (H) 044.Wildcard-Matchingarrow-up-right (H-) 097.Interleaving-Stringarrow-up-right (H-) 072.Edit-Distancearrow-up-right (H-) 115.Distinct-Subsequencesarrow-up-right (H-) 583.Delete-Operation-for-Two-Stringsarrow-up-right (M+) 712.Minimum-ASCII-Delete-Sum-for-Two-Stringsarrow-up-right (M+) 718.Maximum-Length-of-Repeated-Subarrayarrow-up-right (M) 727.Minimum-Window-Subsequencearrow-up-right (H-) 1035.Uncrossed-Linesarrow-up-right (M) 1092.Shortest-Common-Supersequencearrow-up-right (H-) 1143.Longest-Common-Subsequencearrow-up-right (M) 1216.Valid-Palindrome-IIIarrow-up-right (M+) 1312.Minimum-Insertion-Steps-to-Make-a-String-Palindromearrow-up-right (M+) 1458.Max-Dot-Product-of-Two-Subsequencesarrow-up-right (M) 1771.Maximize-Palindrome-Length-From-Subsequencesarrow-up-right (H)

็Šถๆ€ๅŽ‹็ผฉDP

465.Optimal-Account-Balancingarrow-up-right (H) 691.Stickers-to-Spell-Wordarrow-up-right (H) 943.Find-the-Shortest-Superstringarrow-up-right (H+) 1125.Smallest-Sufficient-Teamarrow-up-right (H) 1349.Maximum-Students-Taking-Examarrow-up-right (H) 1411.Number-of-Ways-to-Paint-Nร—3-Gridarrow-up-right (M) 1434.Number-of-Ways-to-Wear-Different-Hats-to-Each-Otherarrow-up-right (H-) 1595.Minimum-Cost-to-Connect-Two-Groups-of-Pointsarrow-up-right (H) 1659.Maximize-Grid-Happinessarrow-up-right (H) 1681.Minimum-Incompatibilityarrow-up-right (H) 1723.Find-Minimum-Time-to-Finish-All-Jobsarrow-up-right (H-) 1799.Maximize-Score-After-N-Operationsarrow-up-right (H-) 1931.Painting-a-Grid-With-Three-Different-Colorsarrow-up-right (M+) 1994.The-Number-of-Good-Subsetsarrow-up-right (H)

ๆžšไธพ้›†ๅˆ็š„ๅญ้›†

1494.Parallel-Courses-IIarrow-up-right (H) 1655.Distribute-Repeating-Integersarrow-up-right (H) 1986.Minimum-Number-of-Work-Sessions-to-Finish-the-Tasksarrow-up-right (M+)

ไบŒๅˆ†ๅ›พ

1066.Campus-Bikes-IIarrow-up-right (H+) 1879.Minimum-XOR-Sum-of-Two-Arraysarrow-up-right (H) 1947.Maximum-Compatibility-Score-Sumarrow-up-right (H)

Catalan

096.Unique-Binary-Search-Treesarrow-up-right (M+) [1259.Handshakes-That-Don't-Cross](https://github.com/wisdompeak/LeetCode/tree/master/Dynamic_Programming/1259.Handshakes-That-Don't-Crossarrow-up-right) (M+)

Permutation

629.K-Inverse-Pairs-Arrayarrow-up-right (H) 903.Valid-Permutations-for-DI-Sequencearrow-up-right (H) 1866.Number-of-Ways-to-Rearrange-Sticks-With-K-Sticks-Visiblearrow-up-right (H)

Last updated