the problem is :
my solution for this is :
can you please check and explain me what the error that is coming here is?
i have serialised the tree in preorder fashion and put a # wherever there is a NULL. my serialise function is running fine, there is a problem with deseialise which is the same as the buildtree in this video. plz check the problem
Leetcode problem same as in this video
can you tell me why my code is showing TLE i have just used a normal DFS in preorder then why TLE?
can you please explain me about its time complexity as well
if you see my code i have done the same thing that you have done, i have just used a vector instead of a queue then why is my code giving a TLE?