摘要: 虽然是一道简单题,但是有一种超巧妙的解决方法 class Solution { public: bool repeatedSubstringPattern(string s) { string t = s + s; t.erase(t.begin()); t.erase(t.end() - 1); 阅读全文
posted @ 2023-01-16 08:18 heisse 阅读(39) 评论(0) 推荐(0)