Wrong output! It is only displaying one node. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
12th Jul 2021, 9:10 AM
Vedika Agrawal
Vedika Agrawal - avatar
2 Answers
+ 1
Hi Vedika Agrawal Lines 100 and 102, it should be: prev->left = p; and prev->right = p; respectively. Notice that in those lines in the left-hand side of the expression you are using "p" instead of "prev".
13th Jul 2021, 9:35 AM
Mark
0
Ys In append definition, I got it ..tq....👍
13th Jul 2021, 10:35 AM
Vedika Agrawal
Vedika Agrawal - avatar