akshitagit / CPP

Repository for C++/C codes and algos.
https://github.com/akshitagupta15june
MIT License
483 stars 431 forks source link

Element Difference equal to k #200

Open pawarhrishi21 opened 3 years ago

pawarhrishi21 commented 3 years ago

Given an array, ‘A’ of sorted integers and another non-negative integer k, find if there exist 2 indices i and j such that

A[i] - A[j] = k i!= j

Required Time Complexity: O(n)

Add CPP file in the daily code folder.

APOORVANAGAR-2002 commented 3 years ago

Hey! can I work on this problem

surya7765 commented 3 years ago

Hey! Can I do PR for this issue?

aadityasohani commented 3 years ago

hi! I would like to contribute to hacktoberfest2020 through your repo.

incognito1729 commented 3 years ago

Given an array, ‘A’ of sorted integers and another non-negative integer k, find if there exist 2 indices i and j such that

A[i] - A[j] = k i!= j

Required Time Complexity: O(n)

Add CPP file in the daily code folder.

Hey! Can I work on this problem?

kashika3101 commented 3 years ago

hi! I would like to contribute to hacktoberfest2020 .Can you assign me this issue?

Rituraj-commits commented 3 years ago

Would love to work on this issue and make it more efficient.

js0805 commented 3 years ago

Given an array, ‘A’ of sorted integers and another non-negative integer k, find if there exist 2 indices i and j such that

A[i] - A[j] = k i!= j

Required Time Complexity: O(n)

Add CPP file in the daily code folder.

Hey! Please I would like to work on this issue. Please assign it to me

Sambhu98 commented 3 years ago

I would like to solve this issue, can you help me with getting started?

rubisingh2020 commented 3 years ago

Please assign me this issue.