Will Double.MAX_VALUE/Double.MIN_VALUE affect the correctness of the popular solution to this problem?

  • 0

    For example, if all the values in the BST are negative integer, and the input double value is Double.MAX_VALUE as shown below:

    [-4, -6, -2, -7, -5, -3, -1]

    How will that affect the result of a recursive solution without checking potential overflow issue?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.