Can you please point out the mistake in the code? It says wrong answer…
Problem with BST print nodes within keys
The tree you have build is not the correct way of building it, see this
This is how you have to build your bst.
Now apply this logic in your code.
Understood! Thanks! .
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.