Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Why my code not printing the tree level/pre/post/in order traversal ?
1 ответ
+ 1
you need to assign the returned pointer from the function "insertIntoBST" to the pointer root:
root = insertIntoBST(root , data) ; // line 54