+ 1
Wrong output! It is only displaying one node.
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".
0
Ys In append definition,
I got it ..tq....đ