https://leetcode.com/problems/reverse-string/
纯属强迫症,写过的都想贴上来。
class Solution { public: string reverseString(string s) { reverse(s.begin(),s.end()); return s; } };