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.
I think it's much simpler to just add the range check to the return condition. In that way you do not need to negate it and is explicit what it is doing.
Trees: Is This a Binary Search Tree?
You are viewing a single comment's thread. Return to all comments →
I think it's much simpler to just add the range check to the return condition. In that way you do not need to negate it and is explicit what it is doing.