Skip to content

Latest commit

 

History

History
117 lines (112 loc) · 12.7 KB

Dynamic_Programming.md

File metadata and controls

117 lines (112 loc) · 12.7 KB
titletypeweight
2.07 Dynamic Programming
docs
7

Dynamic Programming

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0005Longest Palindromic Substring[Go]({{< relref "/ChapterFour/0001~0099/0005.Longest-Palindromic-Substring.md" >}})Medium32.4%
0022Generate Parentheses[Go]({{< relref "/ChapterFour/0001~0099/0022.Generate-Parentheses.md" >}})Medium72.5%
0032Longest Valid Parentheses[Go]({{< relref "/ChapterFour/0001~0099/0032.Longest-Valid-Parentheses.md" >}})Hard32.8%
0042Trapping Rain Water[Go]({{< relref "/ChapterFour/0001~0099/0042.Trapping-Rain-Water.md" >}})Hard59.3%
0045Jump Game II[Go]({{< relref "/ChapterFour/0001~0099/0045.Jump-Game-II.md" >}})Medium39.8%
0053Maximum Subarray[Go]({{< relref "/ChapterFour/0001~0099/0053.Maximum-Subarray.md" >}})MediumO(n)O(n)50.2%
0055Jump Game[Go]({{< relref "/ChapterFour/0001~0099/0055.Jump-Game.md" >}})Medium38.9%
0062Unique Paths[Go]({{< relref "/ChapterFour/0001~0099/0062.Unique-Paths.md" >}})MediumO(n^2)O(n^2)62.7%
0063Unique Paths II[Go]({{< relref "/ChapterFour/0001~0099/0063.Unique-Paths-II.md" >}})MediumO(n^2)O(n^2)39.4%
0064Minimum Path Sum[Go]({{< relref "/ChapterFour/0001~0099/0064.Minimum-Path-Sum.md" >}})MediumO(n^2)O(n^2)62.0%
0070Climbing Stairs[Go]({{< relref "/ChapterFour/0001~0099/0070.Climbing-Stairs.md" >}})EasyO(n)O(n)52.2%
0091Decode Ways[Go]({{< relref "/ChapterFour/0001~0099/0091.Decode-Ways.md" >}})MediumO(n)O(n)32.7%
0095Unique Binary Search Trees II[Go]({{< relref "/ChapterFour/0001~0099/0095.Unique-Binary-Search-Trees-II.md" >}})Medium52.4%
0096Unique Binary Search Trees[Go]({{< relref "/ChapterFour/0001~0099/0096.Unique-Binary-Search-Trees.md" >}})MediumO(n)O(n)59.7%
0097Interleaving String[Go]({{< relref "/ChapterFour/0001~0099/0097.Interleaving-String.md" >}})Medium37.3%
0115Distinct Subsequences[Go]({{< relref "/ChapterFour/0100~0199/0115.Distinct-Subsequences.md" >}})Hard44.5%
0118Pascal's Triangle[Go]({{< relref "/ChapterFour/0100~0199/0118.Pascals-Triangle.md" >}})Easy70.8%
0119Pascal's Triangle II[Go]({{< relref "/ChapterFour/0100~0199/0119.Pascals-Triangle-II.md" >}})Easy60.8%
0120Triangle[Go]({{< relref "/ChapterFour/0100~0199/0120.Triangle.md" >}})MediumO(n^2)O(n)54.5%
0121Best Time to Buy and Sell Stock[Go]({{< relref "/ChapterFour/0100~0199/0121.Best-Time-to-Buy-and-Sell-Stock.md" >}})EasyO(n)O(1)54.3%
0122Best Time to Buy and Sell Stock II[Go]({{< relref "/ChapterFour/0100~0199/0122.Best-Time-to-Buy-and-Sell-Stock-II.md" >}})Medium63.9%
0124Binary Tree Maximum Path Sum[Go]({{< relref "/ChapterFour/0100~0199/0124.Binary-Tree-Maximum-Path-Sum.md" >}})Hard39.2%
0131Palindrome Partitioning[Go]({{< relref "/ChapterFour/0100~0199/0131.Palindrome-Partitioning.md" >}})Medium64.9%
0152Maximum Product Subarray[Go]({{< relref "/ChapterFour/0100~0199/0152.Maximum-Product-Subarray.md" >}})MediumO(n)O(1)34.9%
0174Dungeon Game[Go]({{< relref "/ChapterFour/0100~0199/0174.Dungeon-Game.md" >}})Hard37.5%
0198House Robber[Go]({{< relref "/ChapterFour/0100~0199/0198.House-Robber.md" >}})MediumO(n)O(n)49.4%
0213House Robber II[Go]({{< relref "/ChapterFour/0200~0299/0213.House-Robber-II.md" >}})MediumO(n)O(n)41.0%
0264Ugly Number II[Go]({{< relref "/ChapterFour/0200~0299/0264.Ugly-Number-II.md" >}})Medium46.2%
0279Perfect Squares[Go]({{< relref "/ChapterFour/0200~0299/0279.Perfect-Squares.md" >}})Medium52.7%
0300Longest Increasing Subsequence[Go]({{< relref "/ChapterFour/0300~0399/0300.Longest-Increasing-Subsequence.md" >}})MediumO(n log n)O(n)52.2%
0309Best Time to Buy and Sell Stock with Cooldown[Go]({{< relref "/ChapterFour/0300~0399/0309.Best-Time-to-Buy-and-Sell-Stock-with-Cooldown.md" >}})MediumO(n)O(n)56.2%
0322Coin Change[Go]({{< relref "/ChapterFour/0300~0399/0322.Coin-Change.md" >}})MediumO(n)O(n)42.1%
0329Longest Increasing Path in a Matrix[Go]({{< relref "/ChapterFour/0300~0399/0329.Longest-Increasing-Path-in-a-Matrix.md" >}})Hard52.4%
0337House Robber III[Go]({{< relref "/ChapterFour/0300~0399/0337.House-Robber-III.md" >}})Medium53.9%
0338Counting Bits[Go]({{< relref "/ChapterFour/0300~0399/0338.Counting-Bits.md" >}})EasyO(n)O(n)75.8%
0343Integer Break[Go]({{< relref "/ChapterFour/0300~0399/0343.Integer-Break.md" >}})MediumO(n^2)O(n)56.1%
0354Russian Doll Envelopes[Go]({{< relref "/ChapterFour/0300~0399/0354.Russian-Doll-Envelopes.md" >}})Hard37.9%
0357Count Numbers with Unique Digits[Go]({{< relref "/ChapterFour/0300~0399/0357.Count-Numbers-with-Unique-Digits.md" >}})MediumO(1)O(1)51.9%
0368Largest Divisible Subset[Go]({{< relref "/ChapterFour/0300~0399/0368.Largest-Divisible-Subset.md" >}})Medium41.6%
0376Wiggle Subsequence[Go]({{< relref "/ChapterFour/0300~0399/0376.Wiggle-Subsequence.md" >}})Medium48.3%
0377Combination Sum IV[Go]({{< relref "/ChapterFour/0300~0399/0377.Combination-Sum-IV.md" >}})Medium52.2%
0392Is Subsequence[Go]({{< relref "/ChapterFour/0300~0399/0392.Is-Subsequence.md" >}})EasyO(n)O(1)47.5%
0396Rotate Function[Go]({{< relref "/ChapterFour/0300~0399/0396.Rotate-Function.md" >}})Medium41.1%
0397Integer Replacement[Go]({{< relref "/ChapterFour/0300~0399/0397.Integer-Replacement.md" >}})Medium35.2%
0410Split Array Largest Sum[Go]({{< relref "/ChapterFour/0400~0499/0410.Split-Array-Largest-Sum.md" >}})Hard53.5%
0413Arithmetic Slices[Go]({{< relref "/ChapterFour/0400~0499/0413.Arithmetic-Slices.md" >}})Medium65.1%
0416Partition Equal Subset Sum[Go]({{< relref "/ChapterFour/0400~0499/0416.Partition-Equal-Subset-Sum.md" >}})MediumO(n^2)O(n)46.3%
0435Non-overlapping Intervals[Go]({{< relref "/ChapterFour/0400~0499/0435.Non-overlapping-Intervals.md" >}})Medium50.3%
0458Poor Pigs[Go]({{< relref "/ChapterFour/0400~0499/0458.Poor-Pigs.md" >}})Hard62.8%
0473Matchsticks to Square[Go]({{< relref "/ChapterFour/0400~0499/0473.Matchsticks-to-Square.md" >}})Medium40.2%
0474Ones and Zeroes[Go]({{< relref "/ChapterFour/0400~0499/0474.Ones-and-Zeroes.md" >}})Medium46.8%
0488Zuma Game[Go]({{< relref "/ChapterFour/0400~0499/0488.Zuma-Game.md" >}})Hard33.9%
0494Target Sum[Go]({{< relref "/ChapterFour/0400~0499/0494.Target-Sum.md" >}})Medium45.7%
0509Fibonacci Number[Go]({{< relref "/ChapterFour/0500~0599/0509.Fibonacci-Number.md" >}})Easy69.8%
0518Coin Change II[Go]({{< relref "/ChapterFour/0500~0599/0518.Coin-Change-II.md" >}})Medium60.6%
0526Beautiful Arrangement[Go]({{< relref "/ChapterFour/0500~0599/0526.Beautiful-Arrangement.md" >}})Medium64.4%
054201 Matrix[Go]({{< relref "/ChapterFour/0500~0599/0542.01-Matrix.md" >}})Medium44.8%
0576Out of Boundary Paths[Go]({{< relref "/ChapterFour/0500~0599/0576.Out-of-Boundary-Paths.md" >}})Medium44.3%
0583Delete Operation for Two Strings[Go]({{< relref "/ChapterFour/0500~0599/0583.Delete-Operation-for-Two-Strings.md" >}})Medium59.8%
0638Shopping Offers[Go]({{< relref "/ChapterFour/0600~0699/0638.Shopping-Offers.md" >}})Medium53.3%
0647Palindromic Substrings[Go]({{< relref "/ChapterFour/0600~0699/0647.Palindromic-Substrings.md" >}})Medium66.9%
0714Best Time to Buy and Sell Stock with Transaction Fee[Go]({{< relref "/ChapterFour/0700~0799/0714.Best-Time-to-Buy-and-Sell-Stock-with-Transaction-Fee.md" >}})MediumO(n)O(1)65.2%
0718Maximum Length of Repeated Subarray[Go]({{< relref "/ChapterFour/0700~0799/0718.Maximum-Length-of-Repeated-Subarray.md" >}})Medium51.3%
0746Min Cost Climbing Stairs[Go]({{< relref "/ChapterFour/0700~0799/0746.Min-Cost-Climbing-Stairs.md" >}})EasyO(n)O(1)63.2%
0823Binary Trees With Factors[Go]({{< relref "/ChapterFour/0800~0899/0823.Binary-Trees-With-Factors.md" >}})Medium49.7%
0828Count Unique Characters of All Substrings of a Given String[Go]({{< relref "/ChapterFour/0800~0899/0828.Count-Unique-Characters-of-All-Substrings-of-a-Given-String.md" >}})Hard51.6%
0834Sum of Distances in Tree[Go]({{< relref "/ChapterFour/0800~0899/0834.Sum-of-Distances-in-Tree.md" >}})Hard59.1%
0838Push Dominoes[Go]({{< relref "/ChapterFour/0800~0899/0838.Push-Dominoes.md" >}})MediumO(n)O(n)57.0%
0845Longest Mountain in Array[Go]({{< relref "/ChapterFour/0800~0899/0845.Longest-Mountain-in-Array.md" >}})Medium40.2%
0877Stone Game[Go]({{< relref "/ChapterFour/0800~0899/0877.Stone-Game.md" >}})Medium69.7%
0887Super Egg Drop[Go]({{< relref "/ChapterFour/0800~0899/0887.Super-Egg-Drop.md" >}})Hard27.1%
0898Bitwise ORs of Subarrays[Go]({{< relref "/ChapterFour/0800~0899/0898.Bitwise-ORs-of-Subarrays.md" >}})Medium37.2%
0907Sum of Subarray Minimums[Go]({{< relref "/ChapterFour/0900~0999/0907.Sum-of-Subarray-Minimums.md" >}})Medium35.8%
0918Maximum Sum Circular Subarray[Go]({{< relref "/ChapterFour/0900~0999/0918.Maximum-Sum-Circular-Subarray.md" >}})Medium43.0%
0920Number of Music Playlists[Go]({{< relref "/ChapterFour/0900~0999/0920.Number-of-Music-Playlists.md" >}})Hard50.7%
0968Binary Tree Cameras[Go]({{< relref "/ChapterFour/0900~0999/0968.Binary-Tree-Cameras.md" >}})Hard46.6%
0978Longest Turbulent Subarray[Go]({{< relref "/ChapterFour/0900~0999/0978.Longest-Turbulent-Subarray.md" >}})Medium47.2%
0996Number of Squareful Arrays[Go]({{< relref "/ChapterFour/0900~0999/0996.Number-of-Squareful-Arrays.md" >}})Hard49.2%
1025Divisor Game[Go]({{< relref "/ChapterFour/1000~1099/1025.Divisor-Game.md" >}})EasyO(1)O(1)67.6%
1048Longest String Chain[Go]({{< relref "/ChapterFour/1000~1099/1048.Longest-String-Chain.md" >}})Medium59.3%
1049Last Stone Weight II[Go]({{< relref "/ChapterFour/1000~1099/1049.Last-Stone-Weight-II.md" >}})Medium53.2%
1105Filling Bookcase Shelves[Go]({{< relref "/ChapterFour/1100~1199/1105.Filling-Bookcase-Shelves.md" >}})Medium59.3%
1137N-th Tribonacci Number[Go]({{< relref "/ChapterFour/1100~1199/1137.N-th-Tribonacci-Number.md" >}})Easy63.7%
1143Longest Common Subsequence[Go]({{< relref "/ChapterFour/1100~1199/1143.Longest-Common-Subsequence.md" >}})Medium58.4%
1235Maximum Profit in Job Scheduling[Go]({{< relref "/ChapterFour/1200~1299/1235.Maximum-Profit-in-Job-Scheduling.md" >}})Hard53.4%
1463Cherry Pickup II[Go]({{< relref "/ChapterFour/1400~1499/1463.Cherry-Pickup-II.md" >}})Hard69.5%
1641Count Sorted Vowel Strings[Go]({{< relref "/ChapterFour/1600~1699/1641.Count-Sorted-Vowel-Strings.md" >}})Medium77.4%
1646Get Maximum in Generated Array[Go]({{< relref "/ChapterFour/1600~1699/1646.Get-Maximum-in-Generated-Array.md" >}})Easy50.2%
1653Minimum Deletions to Make String Balanced[Go]({{< relref "/ChapterFour/1600~1699/1653.Minimum-Deletions-to-Make-String-Balanced.md" >}})Medium58.9%
1654Minimum Jumps to Reach Home[Go]({{< relref "/ChapterFour/1600~1699/1654.Minimum-Jumps-to-Reach-Home.md" >}})Medium29.1%
1655Distribute Repeating Integers[Go]({{< relref "/ChapterFour/1600~1699/1655.Distribute-Repeating-Integers.md" >}})Hard39.3%
1659Maximize Grid Happiness[Go]({{< relref "/ChapterFour/1600~1699/1659.Maximize-Grid-Happiness.md" >}})Hard38.8%
1664Ways to Make a Fair Array[Go]({{< relref "/ChapterFour/1600~1699/1664.Ways-to-Make-a-Fair-Array.md" >}})Medium63.3%
1681Minimum Incompatibility[Go]({{< relref "/ChapterFour/1600~1699/1681.Minimum-Incompatibility.md" >}})Hard37.8%
1690Stone Game VII[Go]({{< relref "/ChapterFour/1600~1699/1690.Stone-Game-VII.md" >}})Medium58.1%
1691Maximum Height by Stacking Cuboids[Go]({{< relref "/ChapterFour/1600~1699/1691.Maximum-Height-by-Stacking-Cuboids.md" >}})Hard54.6%
1696Jump Game VI[Go]({{< relref "/ChapterFour/1600~1699/1696.Jump-Game-VI.md" >}})Medium46.1%
2167Minimum Time to Remove All Cars Containing Illegal Goods[Go]({{< relref "/ChapterFour/2100~2199/2167.Minimum-Time-to-Remove-All-Cars-Containing-Illegal-Goods.md" >}})Hard40.8%
------------------------------------------------------------------------------------------------------------------------------------------------

close