Minimum Coin Change Problem - Solution Using DP
Implement an optimized solution for the problem discussed in the previous lesson.
We'll cover the following
Solution: Dynamic Programming approach
Since the same subproblems are computed again and again, this problem has the overlapping subproblems property.
Like other typical dynamic programming problems, re-computations of the same subproblems can be avoided by constructing a temporary array dp[]
and memoizing the computed values in that array.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.