Structurally different (binary tree)

i have implemented it by constructing whole tree and then by string matchint.
i am getting wrong answer on test case 3 in both cases. please assist.

@sakshamm14 hey sakshamm save your code on ide and share it heren

Hey Saksham,
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.