0

How can I make this code with just one parameter (int[] a) ?

```
private void QuickSort( int[] a, int left, int right )
{
int i = left;
int j = right;
int pivot = a[( left + right ) / 2];
while( i <= j )
{
while( a[i] < pivot )
i++;
while( a[j] > pivot )
j--;
if( i <= j )
{
int tmp = a[i];
a[i++] = a[j];
a[j--] = tmp;
}
}
if( j > 0 )
{
QuickSort( a, left, j );
}
if( i < right )
{
QuickSort( a, i, right );
}
}
```

It must not include **int left** and **int right** parameters in QuickSort subroutine.

*Edited
by trume*: /