Confusion with one failure case with my Java solution

  • 0

    my program failed at following case:

    Input [1,2]



    And I debugged my codes at Tree: root as 1, right child as 2, which I think is the input tree; It could serialize & deserialize out the tree;

    So I don't understand the result;

Log in to reply

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