Given an integer array and an integer k, return true if there are two distinct indices i and j with nums[i] == nums[j] and abs(i - j) <= k.
Practise this challenge
All coding challenges