Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.

Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).

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

Could anyone throw some explanation. Great thanks.

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.

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