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.
So it says "Note: There are no duplicate values in the binary search tree.", meaning that the data values are not the same for any two nodes correct? Because I noticed when I changed my code to do a greater than or equal to, I passed the test. I decided to spend 5 hackoros on test case 7 and noticed there are two same data values on two of the nodes. Am I misinterpreting the problem or maybe the input? (Looking at it closer, I think they meant to put 1,2 not 2,2)
Trees: Is This a Binary Search Tree?
You are viewing a single comment's thread. Return to all comments →
So it says "Note: There are no duplicate values in the binary search tree.", meaning that the data values are not the same for any two nodes correct? Because I noticed when I changed my code to do a greater than or equal to, I passed the test. I decided to spend 5 hackoros on test case 7 and noticed there are two same data values on two of the nodes. Am I misinterpreting the problem or maybe the input? (Looking at it closer, I think they meant to put 1,2 not 2,2)