You are viewing a single comment's thread. Return to all comments →
I didn't understand
count(sum,coins,coin_num-1)+count(sum-coins[coin_num-1],coins,coin_num);
part, can anyone explain me kindly? I really want to understand DP... :(
Seems like cookies are disabled on this browser, please enable them to open this website
The Coin Change Problem
You are viewing a single comment's thread. Return to all comments →
I didn't understand
count(sum,coins,coin_num-1)+count(sum-coins[coin_num-1],coins,coin_num);
part, can anyone explain me kindly? I really want to understand DP... :(