Hi,

I think that the description of the code challenge is not very fortunate. In fact, we need to think in terms of a "distance metric" for both the indices and the values of the vector. And as such the differences should be in terms of abs(). So abs(i-j) <= k and abs(nums[i] - nums[j]) <= t, I believe.

Regards.