字符串 2024-4-18 0:04 | 22 | 0 | 字符串 447 字 | 3 分钟 字符串 1、异或运算符 1、这里可以用异或运算符来代替temp进行交换的操作 2、例子 ①异或运算符 while(start<end){ ch[start] ^= ch[end]; ch[end] ^= ch[start]; ch[start] ^= ch[end]; start++; end--; } ②普通写法 while(start&l…