2021年6月10日

518. 零钱兑换 II

摘要: 传送门:https://leetcode-cn.com/problems/coin-change-2/ 和01背包不同的是,硬币的数量是无限的,可以随便用,所以把从尾到0的for循环反过来写就行了。 class Solution { public: int change(int amount, ve 阅读全文

posted @ 2021-06-10 14:42 LLawliet 阅读(38) 评论(0) 推荐(0) 编辑

导航