Open rahulgoyal8312 opened 2 years ago
@rahulgoyal8312, Kindly create an issue first and then PR. And follow the PR template and contribution guidelines. I am not closing this PR since this was your first time. You may refer CONTRIBUTING.md(present in the repository) and create an issue(iff program has not been done in repositories probable folders).
If above given lines follow, then kindly create an issue now and claim it. I will assign it to you.
@SarthakKeshari Do take a look at this PR for the 3 Sum Closest issue that you've assigned.
Choose your form and fill it -
1. Form 1(C++ Solution contributors)
1) Form 1
Issue Id you have worked upon -
Given a target element, need to find the sum of exactly three numbers from an array which should be around or equal to that target element.
Briefly explain your program logic -
Sort the array provided, then using two pointer approach need to calculate the sum of (currentIndex) + (currentIndex+1) + (RightIndex) and find the absolute difference and keep track of a variable "closest" which will be updated if the resultant value is lower than existing closest value.
Screenshots(Attach 2 screenshots of your own input and output) -
Checklist:
Eg - If your code follow the below guidelines. Kindly change [] to [x]
All the conditions should be fulfilled for considering your code for merging -
[x] I have mentioned the question as comment in my solution file.
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code.
[x] My code gives the correct output.
[x] I confirm that I have not copied the code from anywhere. In case its found that I have copied even after successful merge then I can be banned from the repository and hacktoberfest.
[x] I affirm that I strictly follow contributing guidelines and code of conduct.