public class test30{ public static void main(String args[]){ int array[]={3,2,5,1,4}; int temp[] = findTopN(array,4); for(int i=0;in){ j = index-1; index = partition(array,i,j); }else{ i = index+1; index = partition(array,i,j); } } for(int k=0;k =key){ //先j j--; } if(i
海量数据时: