-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
there is a problem about "Two Sum" #18
Comments
I couldn't understand your question, I just tested my code, and my code can pass the "Two Sum" on LeetCode. Could you be more specific about your question? |
my question is :if the test list is {3,2,4} and target is 6, your code 2014-04-16 17:46 GMT+08:00 Frank Dai [email protected]:
|
I tested this case, the output of my code is |
I will try it again latter ,thanks for your reply. 2014-04-17 15:59 GMT+08:00 Frank Dai [email protected]:
|
I met the same problem, I think maybe you can change the code |
In a case the code is not right: if gap == num[i] then you will get result[0]=result[1]
The text was updated successfully, but these errors were encountered: