fineanmol / Hacktoberfest2024

Make your first Pull Request on Hacktoberfest 2024. Don't forget to spread love and if you like give us a ⭐️
https://fineanmol.github.io/Hacktoberfest2024/
GNU General Public License v3.0
2.53k stars 8.01k forks source link

Contains Duplicate #3827

Closed divas18 closed 2 years ago

divas18 commented 2 years ago
You are given an integer array nums and two integers indexDiff and valueDiff.

Find a pair of indices (i, j) such that:

i != j,
abs(i - j) <= indexDiff.
abs(nums[i] - nums[j]) <= valueDiff, and
Return true if such pair exists or false otherwise.

During Interview of Amdocs interviewer asked me this question

github-actions[bot] commented 2 years ago

@divas18 Please Star ⭐️ the repo to earn "hacktober-accepted" label for the event. Meanwhile if you want to work on this issue, Please raise the PR and we will review and merge it.

divu02 commented 2 years ago

sir can you assign me this issue? I can solve in java/

ghost commented 2 years ago

assign me this one

Athrav-droid commented 2 years ago

I'm using Java from Past 1.5 Years. I'm Pretty sure about solving this issue. I will be highly obliged if you allow me to solve the issue.

Sritam28 commented 2 years ago

I could handle this. Could you please assigmn this to me.