- (void)quickSortWithdata:(int [])data Start:(int)start End:(int)end
{
int temp = data[start];
int i = start;
int j = end;
while (i < j) {
while (i < j && data[j] >= temp) {
j --;
}
if (i < j) {
data[i] = data[j];
}
while (i < j && data[i] <= temp) {
i ++;
}
if (i < j) {
data[j] = data[i];
}
}
data[i] = temp;
[self quickSortWithdata:data Start:start End:i];
[self quickSortWithdata:data Start:i+1 End:end];
}