How can the absolute difference k be negetive

  • 0

    I attempted to code this and found that one I/P has k as -1.

    Since the value k is an absolute values i.i |x - y| is this not a wrong test case.

    Or am i not getting the problem correctly.

Log in to reply

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