Write a function that checks whether two binary trees are mirrors of each other

Difficulty level

This exercise is mostly suitable for students
int check_mirrors(Btree B, Btree C)
{
if(!B && !C) return 1;
if(!B || !C) return 0;
if(B->data != C->data) return 0;
return check_mirrors(B->left,C->right) && check_mirrors(B->right, C->left);
}
Back to the list of exercises
Looking for a more challenging exercise, try this one !!
