If in binary tree we have child value equal to parent value then in BST which side (Left or right) will that child be placed?

If in binary tree we have child value equal to parent value then in BST which side (Left or right) will that child be placed?

Hey @pssharma1410,
You generally won’t face any such issues while solving problems based on BST as the left side contains only the smaller elements and right contains the elements larger than current node.
But incase you come across any such issue, you can place the child on either side of the parent, that would depend upon your logic.

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.