//Structurally identical(Binary tree)

Only 2 test cases are passing and for rest two giving wrong answer .Where is the mistake?
here is the link i am sharing with you

Hi Vijay,
there is no need of comparing the data stored in the tree because the questions asks if they are structurally identical and you have to modify your buildtree function() according to the input provided rest your identical() function is correct.
If this doesn’t help then you can ask further for help

1 Like

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.