摘要: //合并两个数组public class Merge { public static int[] Merge (int[]a,int[] b){ int la=a.length; int lb=b.length; int pa=0,pb=0,pc=0; int[] c=new int[la+lb]; while(pa<la&&pb<lb){ if(a[pa]<b[pb]){ c[pc++]=a[pa++]; } else{ ... 阅读全文
posted @ 2012-06-18 21:06 ilxx1988 阅读(189) 评论(0) 推荐(0) 编辑