youngyangyang04/leetcode-master

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

TreeWalk opened this issue · 1 comments

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

return result; 改成break就好了