摘要: class Solution { public boolean canPartition(int[] nums) { int len = nums.length; // 题目已经说非空数组,可以不做非空判断 int sum = 0; for (int num : nums) { sum += num 阅读全文
posted @ 2023-09-25 21:41 Chenyi_li 阅读(10) 评论(0) 推荐(0)
摘要: https://programmercarl.com/背包理论基础01背包-1.html#总结 https://www.bilibili.com/video/BV1C7411K79w?p=1&vd_source=46d50b5d646b50dcb2a208d3946b1598 package dyn 阅读全文
posted @ 2023-09-25 21:12 Chenyi_li 阅读(12) 评论(0) 推荐(0)