0
我有理解这个问题背后的逻辑艰难的时间, 这是经典的动态规划问题硬币找零,动态规划重新
Coin Change is the problem of finding the number
of ways of making changes for a particular amount of cents, n,
using a given set of denominations d1,d2,..dm;
我知道如何递归作品,如以第m个硬币或不但我不明白这两个州之间做了什么“+”。
对于如
C(N,m)=C(N,m-1)+C(N-dm,m)
^
|
问题可能是愚蠢的,但我还是想知道,这样我可以有更好的understanding.Thanks
“现在,因为它们都是独立的和详尽的” - 这是我寻找的路线“。在中间使用'+'与我们在组合或是在组合中是一样的?即”这个或那个“方式 – bitshiftleft
是的!不管是这种方式还是那个!!没有其他可能的方式,也没有重复!! –
非常感谢...你帮了很多:) – bitshiftleft