第一题 public int putGems (int[] price, int k) { // write code here return dfs_max(price, k, 0, price.length - 1) - dfs_min(price, k, 0, price.length - 1); } public int dfs_max(int[] price, int k, int begin, int end){ int res = 0; if(k == 1){ return ...