当前位置: 代码迷 >> 综合 >> 算法 1.4.17
  详细解决方案

算法 1.4.17

热度:100   发布时间:2023-09-23 03:32:03.0
	public static double Pro1_4_17(double[] a){double[] temp = a.clone();for(int i=0;i<temp.length;i++)if(temp[i]<0) temp[i]=-temp[i];Arrays.sort(temp);return temp[temp.length-1] - temp[0];}	

  相关解决方案