220. Contains Duplicate III
Problem Link
Given an integer array nums and two integers k and t, return true if there are two distinct indices i and j in the array such that
abs(nums[i] - nums[j]) <= t and
abs(i - j) <= k.
Solution
Bucket size: t + 1
class Solution:
def c...
superbcoder.hashnode.dev1 min read