03 2014 档案
摘要:1 public static TreeNode DeSerilize(ArrayListres,int[] i){ 2 if(res.get(i[0]).equals("#")||i[0]==res.size()) return null; 3 TreeNode ...
阅读全文
摘要:1 public int DP(int[] stamp,int sum){ 2 int maxValue =0; 3 for(int v :stamp){ 4 maxValue = Math.max(maxValue, v); 5 } 6 int values []= new int[maxValue+1]; 7 values[0]=0; 8 for(int request=1;request dp){ 2 3 if(target==0) ...
阅读全文