static int patition(int v[], int left, int right)
{
int x = v[left];
while (left < right)
{
while (left < right && x <= v[right])
right--;
v[left] = v[right];
while (left < right && x >= v[left])
left++;
v[right] = v[left];
}
v[left] = x;
return left;
}
static void prt_array(const int v[], const int iSize)
{
int i;
for (i = 0; i < iSize; i++)
printf((i + 1) % 5 ? "%d, " : "%d\n", v[i]);
}