@administrators I think the test cases doesn't include the one which one node have more than two child, like:
Since my wrong solution can pass the test.
@treeguard Good catch! I have just added this test case.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.