why we did +1 after min (x, y ,z). I didnt understand.Can u tell me again
Why we did +1 after min(x,y,z)
@vibhor1007
lets say you want to calculate min coins to make ‘n’ amount.
so it will be min_coins[n] = 1 + min_coins[n-k].
that +1 is because you added the coin of denomination ‘k’.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.