https://ide.codingblocks.com/s/123677 what will be recursive approach of this problem
what mistake i am doing in my code ??
question-Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, … , Sm} valued coins, In how many ways can we make the change? The order of coins doesn’t matter.
Input Format
First line of input contain two space separated integers N and M. Second line of input contains M space separated integers - value of coins.
Constraints
1<=N<=250 1<=m<=50 1 <= Si <= 50
Output Format
Output a single integer denoting the number of ways to make the given change using given coin denominations.
Sample Input
10 4
2 5 3 6
Sample Output
5