2019年6月30日

摘要: 1 public class ZeroOneKnapsack { 2 3 public int solveKnapsack(int[] profits, int[] weights, int capacity) { 4 Integer[][] dp = new Integer[profits.len 阅读全文

posted @ 2019-06-30 03:14 PatrickZhang15 阅读(144) 评论(0) 推荐(0) 编辑

2019年6月26日

摘要: Array: Arrays.copyfOf(<original primitive array>, int newLengtg) 如果newlength大于original, 则会padd成0或者null character,取决于original array 的type. 阅读全文

posted @ 2019-06-26 08:15 PatrickZhang15 阅读(1726) 评论(0) 推荐(0) 编辑