I'm really confused by this line:
Isn't that an infinite loop? what are you trying to do?Code:int partition(int array[], int size)
{
int end=size;
int x=0;
int t_sum,half;
t_sum=recursive_partition(array,size,0,size);
half=t_sum/2;
if (size==0)
{
return 0;
}
if (recursive_partition(array, size, x,end-1)!=half)
{
return partition(array,size);
}
else
{
return 1;
}
}

