Structure identical binary tree

Sir/Ma’am my 3 out of 4 test cases shows correct answers only 1 shows wrong ansswer I am unable to figure out where am I wrong in logic please help.
code link


problem structurally identical binary tree

@Devforlife07,
You were missing a test case. If any of the roots aren’t null, there’s no need to check further. I have corrected your code https://ide.codingblocks.com/s/186919. Kindly understand the changes and do a dry run. Ask for help if you aren’t able to understand.