Whats wrong in this approach
@kushagrapathak0987 hey kusha please make separate function for post order in this function you have to only pass in array or pre array and also make a class of tree. this will not work. question only demand for Create tree ( Using preorder and inorder) and you are passing all array so please make different function and it will work
Hey Kushagra,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.