WA on the testcases
hi @Krishna-Singh-2678805765519156 see the output format, you have to print like this

whereas your output is

even after that getting wa. changed the code in ide again still
I have made a bst only this method was given in gfg to construct bst from preorder
@Krishna-Singh-2678805765519156 see the method given in course once, there must be a video on construction of BST when array of integers is given.
the array of integer is preorder i know the o(n2) method this is in o(n) method
i dont think create bst function is wrong. I copy pasted the code from gfg of create bst from preorder still it show wa.
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.