题目:344. 反转字符串 思路 双指针法 代码 class Solution { public:void reverseString(vector<char>& s) {int i, j, temp;for(i = 0, j = s.size()-1; i < j; i++, j--){temp = s[j];s[j] = s[i];s[i] = temp;}} };