The program to find the number of ways to reach a given score in a game is discussed here. Consider a game where a player can score 1 or 2 or 5 points in a move. Given a total score n, find the total number of ways to reach the given score.
Example 1:
cost = 19
Points per move = 2, 7, 10
Number of ways = 2
Example 2:
cost = 15
Points per move =5, 10
Number of ways = 2
@@coding::1@@