摘要: 问题 给定一个非空的字符串 s ,检查是否可以通过由它的一个子串重复多次构成。 解决 class Solution { public boolean repeatedSubstringPattern(String s) { int n=s.length(); for(int i=1;i*2<=n;+ 阅读全文
posted @ 2022-06-24 22:49 new_monkey 阅读(165) 评论(0) 推荐(0)