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!
Does anyone have an answer to this? I have the same problem. It doesn't seem that the description matches expected result!
(a, (ab, b))
(a, ((a, b), b))
(a, ((b, a), b))
(a, (ba, b))
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.