Saicharan67 / Interview-Coding-Questions

11 stars 10 forks source link

feat: added sliding window #16

Closed kunalkumar007 closed 2 years ago

kunalkumar007 commented 2 years ago

This PR will close #13

Added Contains Duplicate

  • 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.

Constraints:

kunalkumar007 commented 2 years ago

Hy @Saicharan67 , I have made the changes, please review and don't forget when you accepted the PR, it must have the label hacktoberfest-accepted to count for the participants. 😇

Saicharan67 commented 2 years ago

@kunalkumar007 FYI labels don't even matter for a pr to be eligible for hactoberfest. The only thing is, the repo must contain the topic as hacktoberfest