A DP a day keeps the bug away.
Cointains Dp Problems
Parent Problem : Kadane's Algorithm
Parent Problem : Fibonacci.
SubProblems :
- Reach a given Score.
- Count number of hops.
- Count ways to reach n-th stair.
- Count Number of Ways to Tile.
- Tiling Problem-General.
- Maximum Sum Dividing.
- Friends Pairing Problem
- Maximize the Cutting
- Number of Ways to Decode a String
Parent Problem : 0/1 KnapSack Problem
SubProblems :
- SubSet Sum.
- Equal Sum Partition.
- Count of SubSet Sum.
- Minimum SubSet Sum Difference.
- Count SubSets of given Sum.
Parent Problem : Unbounded KnapSack
SubProblems :
- Coin Changing Problem 1(No of ways).
- Coin Changing Problem 2(Minimum no of coins).
- Rod Cutting Problem.
- Minimum Cost to Fill Bag.
Parent Problem : Longest Common SubSequence
SubProblems :
- Longest Common SubString.
- Shortest Common SuperSequence.
- Print LCS.
- Minimum Insertions And Deletion to Convert a String.
- Longest Repeating SubSequence.
- Longest Pallindromic SubSequence.
- Edit Distance.
- Count All Pallindromic SubSequence.
- Minimum Deletion to make string pallindrome.
- Count Distinct Occcurences.
- Maximum length of pairs.
- Minimum Ascii Sum deletion To Make two Strings equal.
- Maximum Dot Product of Subsequences(Leetcode).
- Uncrossed Lines(LeetCode).
Parent Problem : Longest Increasing Subsequence
- Russian Doll Envelope(Leetcode).
- Longest Decreasing SubSequence.
- Maximum Sum Increasing SubSequence.
- Maximum Sum Decreasing SubSequence.
- Maximum Product Increasing Subsequence.
- Minimum Jumps to reach end.
- Box Stacking Problem.
- Longest Bitonic Sequence.
- Longest Alternating Subsequence
- Count All Increasing Subsequences.
Parent Problem : DP + Greedy
Parent Problem : Game(DP) + minimax
- Nim Game.
- Flip Game-1.
- Flip Game-2.
- Get Minimum Squares.
- Optimal Strategy to play a Game.
- Stone Game-3
- Jump Game-3(Leetcode)
- Jump Game-5(Leetcode)
Parent Problem : Dp on Grids
- Maximum Size Submatrix Square.
- Maximum Path Sum in Triangle.
- Minimum Initial Points to Reach Destination.
- GoldMine Problem
- Path in a Matrix
- Maximal Square(Leetcode)
- Count Submatrices with all ones(Leetcode)
- Maximum Sum Submatrix
- Unique Path-1
- Unique Path-2
Parent Problem : Matrix Chain Multiplication
Parent Problem : Count Distinct SubSequences
Parent Problem : Dp on Trees
Others
- Longest Consequetive Subsequences.
- Zeroes And Ones
- Longest Pallidromic SubString.
- Count Pallindromic substring of string
- Product of array except self
Happy Coding!!