Trees: Is This a Binary Search Tree?

  • + 0 comments

    believe I had the same problem as you (our codes look similiar). So I reread the constraints of the problem and this bold part is important 'The data value of every node in a node's left subtree is less than the data value of that node.'