分类: 双指针

1 篇文章

双指针
双指针 1、交换方法 1、 while(start<end){ ch[start] ^= ch[end]; ch[end] ^= ch[start]; ch[start] ^= ch[end]; start++; end--; } 2、快慢指针