Don't understand the question


  • 1
    S

    Given s = "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT",

    Return:
    ["AAAAACCCCC", "CCCCCAAAAA"].

    I see "ACCCCCAAAA" ...and so on are also 10-letter-long sequences (substrings) that occur more than once.

    Can somebody explain to me?


  • 0
    Z

    Why is this a wrong question? I have the same question. :)


  • 0
    W

    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.


  • 0
    Z

    lol, indeed. Thanks!


  • 0
    S

    Don't give me vote up for this question, buddy.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.