public static int partition(int array[],int start,int end) ` { int pivot_index=(start+end)/2; int pivot=array[pivot_index]; int i=start; int j=end; while(i<j) { ="" while(array[i]<="pivot) " i++; ="" } ="" while(array[j]="">pivot) { j--; } if(i<j) {="" ="" swap(array,i,j); ="" } ="" return="" j; ="" } <b="">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)