Problem 45422. Coin Distribution - 02
Prev prob https://www.mathworks.com/matlabcentral/cody/problems/45385-coin-distribution
Given a set of coins and an amount, find out how many ways the amount can be made using the coins given. Assume, there is an infinite supply of all the coins.
For instance,
Amount = 10 Coins = [ 2,3,5]
possible ways are - [2,2,2,2,2],[2,3,5],[5,5],[2,2,3,3] so total no. of ways = 4.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers27
Suggested Problems
-
Sum of first n terms of a harmonic progression
465 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
855 Solvers
-
Mirror Image matrix across anti-diagonal
198 Solvers
-
Matrix multiplication across rows
364 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2051 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!