下面的贪心代码,对于任意硬币面值集合 coins,都一定可以求出凑出 money 所需要的最少硬币数量。

count = 0# coins 按面值从大到小排序for coin in coins:  count += money // coin  money = money % coin
填写答案