摘要:
二叉树+动态规划就不会了,把代码保存一下 查看代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : 阅读全文
posted @ 2021-12-27 21:34
jozon
阅读(38)
评论(0)
推荐(0)
摘要:
O(nm)直接超时,虽然也是动态规划 查看代码 class Solution { public: int coinChange(vector<int>& coins, int amount) { if(amount == 0){ return 0; } vector<int>temp(amount+ 阅读全文
posted @ 2021-12-27 15:10
jozon
阅读(22)
评论(0)
推荐(0)

浙公网安备 33010602011771号