We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Then the node that you just tried to insert won't be attached to the tree. For all other nodes it's a don't care as it returns the value root->left/right is already set to.
Cookie support is required to access HackerRank
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 →
Then the node that you just tried to insert won't be attached to the tree. For all other nodes it's a don't care as it returns the value root->left/right is already set to.