You are viewing a single comment's thread. Return to all comments →
Hey! after while loop, your root ptr becomes null, and insert() returns NULL pointer. So, take another pointer to traverse in while loop.
Seems like cookies are disabled on this browser, please enable them to open this website
Binary Search Tree : Insertion
You are viewing a single comment's thread. Return to all comments →
Hey! after while loop, your root ptr becomes null, and insert() returns NULL pointer. So, take another pointer to traverse in while loop.