题解
class Solution {
public:
bool repeatedSubstringPattern(string s) {
string ss = s+s;
ss = ss.substr(1,ss.size()-2);
return ss.find(s)!=-1;
}
};
证明:
标签:459,repeatedSubstringPattern,return,string,ss,题解,字符串,leetcode From: https://blog.51cto.com/liyunhao/6077018