阿鑫来了  
class Solution {
public:
    string solve(string str) {
        // write code here
        string arr=str;
        int n=arr.size();
        for(int i=0;i<n;i++){
            arr[i]=str[n-i-1];
        }
        return arr;
    }
};

 

posted on 2021-09-06 21:12  阿鑫来了  阅读(48)  评论(0)    收藏  举报