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.
Just wanted to understand that in the while loop, if I replace every "root" with "self.root" and remove the line "root = self.root" then why isn't the code working?
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 →
Just wanted to understand that in the while loop, if I replace every "root" with "self.root" and remove the line "root = self.root" then why isn't the code working?