Structurally identical 628

i am getting wrong answer for one test case please check where i m wrong

I have modified your check function a little bit. Try to submit it now.

where i was making mistake?

can you tell where i was making mistake

Actually, you were checking in your function if left and right child data is same, but here there is no need to do that, rather you will simply include 3 conditions in your code, i.e
if(root1==NULL and root2==NULL){
return true;
}
else
if(root1==NULL || root2==NULL)
{
return false;
}
and the recursive calls for left and right child.