Wrong output! It is only displaying one node. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
12th Jul 2021, 9:10 AM
Vedika Agrawal
Vedika Agrawal - avatar
2 Respostas
+ 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