摘要:
package threecolor; class Sort{ public int[] sort(int[] data) { int l=0; int r=data.length-1; int i=0; int t=0; while(i!=r) { if(data[i]==0) { t=data[ 阅读全文
摘要:
package arraygroup; class ArrayMerge{ //从数组后面开始放入数据 public int[] merge(int[] a,int[] b) { int lb=b.length; int la=a.length; int k=la-1; int j=lb-1; in 阅读全文
摘要:
package searcharrary;//查找循环数组最小值class SearchMin{ public int search(int[] data) { int l=0; int r=data.length-1; int m=0; if(data[l]<data[r]) { return d 阅读全文