How about 1,1,1


  • 1
    N

    If build this tree using binary search, then the root node would be having a left node of 1 and a right node of 1. Is this a valid bst or we do not take care of duplicates here?


  • 2

    You may assume that the list does not contain duplicates. Usually Binary Search Tree is defined to not allow duplicates.


Log in to reply
 

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