• + 3 comments

    (Been having trouble submitting comments, sorry if this comes through multiple times. Also, you state v2-v1 is not guaranteed to be positive, which is true. I believe you meant v1-v2, which I address below.)

    The problem states that X2 > X1, so if V2 >= V1 then there is no solution.

    Therefore, for any data that we will operate on (V1-V2) is guaranteed to be positive.