One of test cases seems wrong.

  • 0

    I believe that one of test cases is wrong:

    According to the judge, bdac is not a scrambled string of abcd, but actually, according to the definition of scrambling, it is possible to construct it as follows:

    1. abdc: scamble leaf nodes "d" and "c"
    2. badc: scamble leaf nodes "b" and "a"
    3. bdac: scamble leaf nodes "d" and "a"

    Am I missing anything?

Log in to reply

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