Leetcode 344 Reverse String 字符串处理

题意:反转字符串,用好库函数。

1 class Solution {
2 public:
3     string reverseString(string s) {
4         reverse(s.begin(),s.end());
5         return s;
6     }
7 };
原文地址:https://www.cnblogs.com/onlyac/p/5464499.html