Problem understanding the question.


  • 0
    S

    According to the question, we need to return the next smallest number in the BST, is this not just the in-order predecessor of a node ? I see that people are only storing the left nodes of the root , how is that right ? Where have i gone wrong ?


Log in to reply
 

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