The following test is not valid:
K is defined as a absolute difference. It cannot be negative.
It is. It's an invalid input so just gotta handle the erroneous input.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.