```
public bool ContainsNearbyAlmostDuplicate(int[] nums, int k, int t)
{
Dictionary<int, long> dic = new Dictionary<int, long>();
// Key = place in nums[], Value = actualy integer
for (int i = 0; i < nums.Count(); i++)
{
if (i > k)
dic.Remove(i - k - 1);
if (dic.Any(x => Math.Abs(x.Value - nums[i]) <= t))
return true;
dic.Add(i, nums[i]);
}
return false;
}
```

]]>```
public bool ContainsNearbyAlmostDuplicate(int[] nums, int k, int t)
{
Dictionary<int, long> dic = new Dictionary<int, long>();
// Key = place in nums[], Value = actualy integer
for (int i = 0; i < nums.Count(); i++)
{
if (i > k)
dic.Remove(i - k - 1);
if (dic.Any(x => Math.Abs(x.Value - nums[i]) <= t))
return true;
dic.Add(i, nums[i]);
}
return false;
}
```

]]>Because Dictionary is "Fast" (having time complexity O(1)) when you search for an item by