A repository for beginner contributors in Hacktoberfest '22. You can create a file , upload a new project and create a pull/merge request. Make sure the program is error free and well commented. Multiple languages allowed
Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <= k.
Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <= k.![image](https://user-images.githubusercontent.com/91279248/197333918-328924c9-a247-4618-acba-87fde6a67256.png)