answersLogoWhite

0


Best Answer

int arvoresEspelhadas(ArvoreBinaria a, ArvoreBinaria b) {

if ((a == NULL) && (b == NULL)) {

return 0; //ambas vazias

}

if ((a == NULL) (b == NULL)) {

return 1;

}

return ((a.info == b.info) && arvoresEspelhadas (a->esq, b->dir) && arvoresEspelhadas(a->dir, b->esq);

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Source code to determine if two binary trees are mirror similar?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is a mirror a natural source of light?

A mirror is not a source of light, natural or otherwise.


How do you determine stupidity?

Look in the mirror


Mirror image of binary search tree?

mirror image of the binary tree is nothing but it is the term used to swap the left and right subtrees of the bst... program or function of mirror image void mirror(tree *root) {if (root==NULL) return; else {temp=root->left; root->left=root->right; root->right=temp; } }


How do you determine morbid obesity?

look in the mirror fatty


Is lightning a light source or reflector?

Of course. Any source of light can be reflected from a mirror. The lightning itself will not reflect from a mirror.


Why is concave mirror used in street lights?

bcause when light source placed at focus of the mirror, after flashing the light form the source to the mirror after reflection a straight parallel beam of light emerges which makes the street bright


Type of light source that reflects light rays?

Light doesn't reflect light, nor does any other electromagnetic radiation.


How do a concave mirror and convex mirror differ?

A concave mirror, or converging mirror, has a reflecting surface that bulges inward (away from the incident light). A convex mirror, fish eye mirror or diverging mirror, is a curved mirror in which the reflective surface bulges toward the light source.


What controls light through stage?

The mirror or the light source


How do you determine the features of your rear view mirror?

look in the owners manual


Why is a convex mirror sometimes called a diverging mirror?

Wherever the source of light is, after reflection by the surface of a convex mirror the rays would go always diverged. Hence the name "diverging mirror"


Why do you see ourselves in a mirror?

The light bounces off u from a lit source, off the mirror and back into ur eyes