The sample test seems to be running fine but fails test case 0.
BST Keys in range
Hi @gautam74 you are not given the preorder traversal of the BST, it is just a random sequence and you have to build BST from that, and you have to print preorder afterwards.
The way to build the BST must be explained in previous lectures refer to that.
yeah! my bad, since the sequence matched the preorder, i just assumed it to preorder. Thanks for the help
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.