/** * * @param s string字符串 * @param n int整型 * @return string字符串 */ //逆序函数 void reverse(char* left,char* right) { while (left<right) { char tmp = *left; *left = *right; *right = tmp; left++; right--; } } char* trans(char* s, int n ) { // write code here char* left = s;...