Trees: Is This a Binary Search Tree?

  • [deleted]Challenge Author
    + 1 comment

    Is the equal in >= from:

    if(root.data <= min || root.data >= max)

    ...ever reached? Wouldn't the equivalence in <= be reached first and then never needing the second one? Therefore only needing this:

    if(root.data <= min || root.data > max)