Given s = "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT",
I see "ACCCCCAAAA" ...and so on are also 10-letter-long sequences (substrings) that occur more than once.
Can somebody explain to me?
Please look at given string again, the first group of C has 5 of them, and the second group has 6 of them. Therefore, ACCCCCAAAA only appeared once.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.