Why "aabb" is a scrambled string of "abab"


  • 3
    W

    I think I might miss something.
    But how could aabb be scrambled string of abab?
    My understanding is that abab can only be scrambled into
    abba, baab, baba.
    Thanks a lot!


  • 0
    A

    Does anyone have an answer to this? I have the same problem. It doesn't seem that the description matches expected result!


  • 3
    G

    aabb
    (a, abb)
    (a, (ab, b))
    (a, ((a, b), b))
    (a, ((b, a), b))
    (a, (ba, b))
    (a, bab)
    abab


Log in to reply
 

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