Skip to content

Conversation

@azmuth13
Copy link

Hi! Greetings to you
Here I have added a C program that checks if two binary trees are identical or not

if(t1->value == t2->value)
if(isIdentical(t1->left,t2->left))
if(isIdentical(t1->right,t2->right))
return 1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check these conditions once plz. All of these should have been satisfied. see once,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants