在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ Return the number of distinct non-empty substrings of text that can be written as the concatenation of some string with itself.
Example 1: Input: text = "abcabcabc" Input: text = "leetcodeleetcode" Constraints: 1 <= text.length <= 2000 给你一个字符串 text ,请你返回满足下述条件的 不同 非空子字符串的数目: 可以写成某个字符串与其自身相连接的形式。
示例 1: 输入:text = "abcabcabc" 输入:text = "leetcodeleetcode" 提示: 1 <= text.length <= 2000 |
请发表评论