Skip to content
New issue

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

Updated twoSum.java #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Updated twoSum.java #3

wants to merge 1 commit into from

Conversation

JLDevOps
Copy link

With testing on leetCode, the function twoSum returned indices that were added by 1 integer. Ex. if the actual result was [1, 2], the method returned [2, 3]. Deleted the i+1 in the if & else statements. This works.

With testing on leetCode, the function twoSum returned indices that were added by 1 integer.  Ex. if the actual result was [1, 2], the method returned [2, 3].  Deleted the i+1 in the if & else statements.  This works.
@JLDevOps
Copy link
Author

Completely forgot this was still here. Happy to see it ready for merge. Is anyone able to merge this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants