assign the grandparent node for all the nodes in the tree.

you have given a node of a tree. that node is defined as below:
node(
int value,
node left;
node right;
node grandparent)
at the starting the grand parent node is null in the tree. you have to assign the grandparent node for all the nodes in the tree.

Comments

Popular posts from this blog