344. 反转字符串C

void reverseString(char* s, int sSize) {
int head=0,tail=sSize-1;
while(head<=tail){
char t=s[head];
s[head]=s[tail];
s[tail]=t;
head++;
tail--;
}
}
1min36
结果:


void reverseString(char* s, int sSize) {
int head=0,tail=sSize-1;
while(head<=tail){
char t=s[head];
s[head]=s[tail];
s[tail]=t;
head++;
tail--;
}
}
1min36
结果:
