2022年4月28日
摘要: package leetcode; import java.util.Arrays; public class demo_322 { public int coinChange(int[] coins, int amount) { //目标为0,则对短长度为0 if(amount==0) {retu 阅读全文
posted @ 2022-04-28 16:15 一仟零一夜丶 阅读(42) 评论(0) 推荐(0)
摘要: package leetcode; public class demo_416 { public boolean canPartition(int[] nums) { int sum=0; for (int i : nums) { sum=sum+i; } //全部元素和为偶数,则不存在 if(su 阅读全文
posted @ 2022-04-28 09:48 一仟零一夜丶 阅读(18) 评论(0) 推荐(0)