Why my code not printing the tree level/pre/post/in order traversal ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my code not printing the tree level/pre/post/in order traversal ?

https://code.sololearn.com/cLj79RDghp1V/?ref=app

5th Nov 2022, 7:11 PM
Abhay mishra
Abhay mishra - avatar
1 Answer
+ 1
you need to assign the returned pointer from the function "insertIntoBST" to the pointer root: root = insertIntoBST(root , data) ; // line 54
5th Nov 2022, 10:29 PM
MO ELomari