I wrote a code which satisfies all the test cases that are provided by you (even the locked ones). But still its showing wrong answer. Please look into it.
Wrong judgement
You have to first form a tree and then check if they are structurally identical. Also you do not have to compare the node values.You just have to check if they have similar structure or shape.
There is’nt any need to construct the tree. I am getting correct answers for every input the judge is providing. We can solve the question without constructing the tree too.
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.