Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a C program to check if two binary trees are identical #225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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