Time Limit Exceeded (not for preorder + inorder traversal though)


#1

It gave me TLE. However the solution is similar to the problem where preorder and inorder traversals were given. However that got submitted successfully


#2

same here. my solution is similar to gfg, but it still times out…


#3

@the-phoenix Good problem. Try reducing the complexity


#4

Check if you can reduce the complexity by using hashing.


#5

Thanks, hashing is just the thing!