BST check for BSt

in the left sub tree of 5, 1 ki range (-infinity , 3) hone chaiye naa kyuki 1 , 3 ke left mai hai isliye?
agar 3 ke right mai hota toh sir ki range correct hoti i guess?

@jatinupadhyay786 yes you are right it should be (-inf,3), also if 1 was right child of 3 then range would have been (3,5)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.