• + 2 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... :(