學(xué)到一種新的將數(shù)組reverse的方式。
while(start<end) {
? ? temp = array[start];
? ? array[start++] = array[end];
? ? array[end--] = temp;
}
學(xué)到一種新的將數(shù)組reverse的方式。
while(start<end) {
? ? temp = array[start];
? ? array[start++] = array[end];
? ? array[end--] = temp;
}