[2,1,1] test case gives the wrong expected answer


  • 0
    U

    I was trying the test case [2,1,1]. The expected output given by the system is 1.
    This should be corrected as the expected value should be 2.


  • 0
    V

    [2,1,1] is invalid input, if you meant, 2 is root, 1 is left child and another 1 as right child

    In that case, 1 would be the root


Log in to reply
 

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