• recategorized by
1,137 views

1 Answer

0 0 votes
It will add two new node one will be right child of node 1 & another will be right child of 3, no information regarding new node data is given we will consider it as x & y respectively.

So level order traversal would be

2,1,3,x,y
Position:
Show:

Related questions

1 1 vote
2 2 answers
2.0k
2.0k views
CHïntän ÞäTël asked Dec 10, 2018
2,022 views
four vertices {A,B,C,D} is given which has only vertex D as a leaf total number of binary tree are possible when every binary tree has four node!
0 0 votes
0 0 answers
745
745 views
sunaina rawat asked Nov 7, 2017
745 views
Consider programint foo(struct node *tree){if(tree==0)return 0;int lh=ht(tree->left);int rh=ht(tree->right);int ld=foo(tree->left);int rd=foo(tree->right);return max(lh+r...
0 0 votes
1 1 answer
636
636 views
0 0 votes
2 2 answers
1.3k
1.3k views