1316. Distinct Echo Substrings
https://leetcode.com/problems/distinct-echo-substrings
Description
Return the number of distinct non-empty substrings of text
that can be written as the concatenation of some string with itself (i.e. it can be written as a + a
where a
is some string).
Example 1:
Example 2:
Constraints:
1 <= text.length <= 2000
text
has only lowercase English letters.
ac
Previous1315. Sum of Nodes with Even-Valued GrandparentNext1317. Convert Integer to the Sum of Two No-Zero Integers
Last updated