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.
Where are we adding whether the new node will be the child node of existing node? We are simply traversing till the end of a tree and adding a new node which doesn't have parent? Am I missing something?
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 →
Where are we adding whether the new node will be the child node of existing node? We are simply traversing till the end of a tree and adding a new node which doesn't have parent? Am I missing something?