Coin Change DP Algorithm Print All Combinations
问题 The classic coin change problem is well described here: http://www.algorithmist.com/index.php/Coin_Change Here I want to not only know how many combinations there are, but also print out all of them. I'm using the same DP algorithm in that link in my implementation but instead of recording how many combinations in the DP table for DP[i][j] = count , I store the combinations in the table. So I'm using a 3D vector for this DP table. I tried to improve my implementation noticing that when