Expected Output is Wrong


  • 0
    D

    Hello all,
    I was testing my solution against the following test case

    [10,5,15,1,8,null,7]
    

    Please see here for visualization of above Binary Tree.

    Expected answer for the test case is 3 instead of 2. Am I missing something?


Log in to reply
 

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