• + 10 comments

    The problem states that x2 is strictly greater than x1.

    Thus, if v2 == v1 then the answer is "NO".

    Thus, both x2-x1 and v1-v2 are guaranteed positive and non-zero.