摘要: 问题: 给定一组硬币面值coins,和一个总价amount 求最少用多少个硬币能构成总价,若无法构成,返回-1 Example 1: Input: coins = [1, 2, 5], amount = 11 Output: 3 Explanation: 11 = 5 + 5 + 1 Example 阅读全文
posted @ 2020-08-26 19:33 habibah_chang 阅读(200) 评论(0) 推荐(0)