Posted on

Description

Submission

class Solution {
public:
    int removePalindromeSub(string s) {
        string t = s;
        reverse(t.begin(), t.end());
        if(s == t) return 1;
        return 2;
    }
};

Leave a Reply

Your email address will not be published. Required fields are marked *