摘要: 322. Coin Change class Solution { public: int coinChange(vector<int>& coins, int amount) { //动态规划 // 最优解法 // 算出1-11每个数的组成需要的最少硬币数 int nums[amount+1]; 阅读全文
posted @ 2020-09-13 21:13 cancantrbl 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 21. 合并两个有序链表 - Merge Two Sorted Lists 题目:https://leetcode.com/problems/merge-two-sorted-lists/ /** * Definition for singly-linked list. * struct ListN 阅读全文
posted @ 2020-09-13 11:46 cancantrbl 阅读(401) 评论(0) 推荐(0) 编辑