Diffk II
Given an array A
of integers and another non negative integer k
, find if there exists 2 indices i
and j
such that A[i] - A[j] = k, i != j
.
Example :
Input :
Output :
as 3 - 1 = 2
Return
0 / 1
for this problem.
Last updated
Given an array A
of integers and another non negative integer k
, find if there exists 2 indices i
and j
such that A[i] - A[j] = k, i != j
.
Example :
Input :
Output :
as 3 - 1 = 2
Return 0 / 1
for this problem.
Last updated