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

哈希表-四数之和JAVA代码错误 #2706

Open
TreeWalk opened this issue Aug 23, 2024 · 1 comment
Open

哈希表-四数之和JAVA代码错误 #2706

TreeWalk opened this issue Aug 23, 2024 · 1 comment

Comments

@TreeWalk
Copy link

在通过nums=[-3,-2,-1,0,0,1,2,3],target = 0的测试用例时报错。
6a7aaaa57338914611e9d19c6bf031a
错误返回的结果:
image
修改后的代码:
image
正确的结果:
image

@JinHong-H
Copy link

return result; 改成break就好了

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

No branches or pull requests

2 participants