What is the "next smallest number in the BST"?


  • 0
    J

    I really can understand the meaning of "next smallest number in the BST".

    Could anyone throw some explanation. Great thanks.


  • -1
    E

    It refers to the smallest number in the BST after removing current smallest number. For example:

       5
      / \
     0  10
    

    The smallest number is 0, the next smallest number is 5, the next next smallest number is 10, etc.


Log in to reply
 

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