@DanielFischer I thought so, because if we considered for example the arrays D={-1,0,14,42,56}, E={-5,-4,1,49,82} and K=3, then: $|-1-5|=6 \geq 3, |-1-4|=5 \geq 3$, but $|-1-1| \leq 3$.
But if we considered the arrays D={14,42,56} and E={1,49,82} then $|14-1|=13 \geq 3$ and then it cannot be that $|14-49|$ or $|14-82|$ is $\leq 3$.
So am I wrong?