Is "abcdefg" a scramble of "abcdefg"? Does the existence of one scramble operation neccessary to make it a scramble?
I think it's true, because you can do it by swapping two same nodes twice.
@lzhao yes,because you can do nothing
@lzhao is correct. If we keep the order of the two children every time we split, we end up with the original string.
@Honze How could you swap the same node twice?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.