Closed Adil-S786 closed 4 years ago
According to the coin change problem, we are given a set of coins of various denominations. Consider the below array as the set of coins where each element is basically a denomination. {1,2,3,4} Our task is to use these coins to accumulate a sum of money using the minimum (or optimal) number of coins. Also, we can assume that a particular denomination has an infinite number of coins. In other words, we can use a particular denomination as many times as we want.
For example, if we have to achieve a sum of 7 using the above denominations, we need the below 2 coins
But if we use the greedy technique it will give us 3 coins.
So above question shows us this through example if we take 15 as our total money, to get 4 coins.
sorry for the inconvenience, actually i am super new to this platform so i need your help and motivation😇.
On Thu, 8 Oct 2020 at 10:39, Apoorv Negi notifications@github.com wrote: