【完全背包】LeetCode 1449. 数位成本和为目标值的最大数字
摘要:
题目 https://leetcode.cn/problems/form-largest-integer-with-digits-that-add-up-to-target/description/ 题解 因为每种面额的硬币能选的数量是没有限制的,因此这满足完全背包模型。 状态定义:定义一个大小为 阅读全文
posted @ 2026-06-14 17:38 RomanLin 阅读(5) 评论(0) 推荐(0)
浙公网安备 33010602011771号