very simple c++ code


  • 0
    P

    class Solution {
    public:
    string reverseString(string s) {
    return string(s.crbegin(), s.crbegin() + s.size());
    }
    };


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.