题意:反转字符串,用好库函数。
1 class Solution { 2 public: 3 string reverseString(string s) { 4 reverse(s.begin(),s.end()); 5 return s; 6 } 7 };