i-aka5h / Hack-October

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
31 stars 70 forks source link

Contains Duplicate II - Python #134

Closed aditim26 closed 1 year ago

aditim26 commented 1 year ago

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

aditim26 commented 1 year ago

@i-aka5h Please assign me this issue