We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://dvpr.gitbook.io/coding-interview-patterns/2.-pattern-two-pointers/2.1-pair-with-target-sum-easy#:~:text=int%5B%5D%20copyArray,return%20result%3B
This code does not work for following examples
Actual Output: [2,2] Expected output : [1,2]
The text was updated successfully, but these errors were encountered:
@anchitbhuhan we have to make sure to iterate our index after comparing one variable. Also we can introduce a check i.e. arr[i] != arr[i+1].
Sorry, something went wrong.
No branches or pull requests
https://dvpr.gitbook.io/coding-interview-patterns/2.-pattern-two-pointers/2.1-pair-with-target-sum-easy#:~:text=int%5B%5D%20copyArray,return%20result%3B
This code does not work for following examples
[2,5,5,11]
10
Actual Output: [2,2]
Expected output : [1,2]
The text was updated successfully, but these errors were encountered: