a copy of a tree
Solution:
#include<stdio.h>
struct binarysearchtree{
int data;
struct binarysearchtree* left;
struct binarysearchtree* right;
};
typedef struct binarysearchtree* tree;
tree copy(tree T)
{
if(T== NULL)
return NULL;
else
{
tree *newtree=(tree*)malloc(sizeof(tree));
newtree->data=tree->data;
newtree->left=copy(T->left);
newtree->right=copy(T->right);
return newtree;
}
}
Click Here For More Questions
I like your suggestions they are really helpful. Thank you so much for sharing this post.
ReplyDeleteJava and J2EE Training in Chennai - AmitySoft
ReplyDeleteRpa Training in Chennai
Rpa Course in Chennai
Blue prism training in Chennai
Excellent information on your blog, thank you for taking the time to share with us.
ReplyDeleteAngular JS Training in Chennai | Certification | Online Training Course | Angular JS Training in Bangalore | Certification | Online Training Course | Angular JS Training in Hyderabad | Certification | Online Training Course | Angular JS Training in Coimbatore | Certification | Online Training Course | Angular JS Training | Certification | Angular JS Online Training Course
Thanks for posting this useful content,
ReplyDeletetesting-tools-training-in-hyderabad
Thank you for this post.icecreamhaven.in Vanilla is the most iconic and versatile ice cream flavor. With its creamy texture and subtle sweetness, it pairs perfectly with almost any topping or dessert.
ReplyDelete