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://leetcode.cn/problems/3sum/description/
第一章:一个方法团灭nSum问题 twoSumTarget方法代码中使用res.add(Arrays.asList(left, right))。asList方法生成的list容量固定。threeSumTarget方法中直接对该list使用add方法报错。leetCode官网的解法代码没有问题,使用res.add(new ArrayList<>(Arrays.asList(left, right)));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
请在提交 bug 之前先搜索
出错的题目链接
https://leetcode.cn/problems/3sum/description/
报错信息
第一章:一个方法团灭nSum问题
twoSumTarget方法代码中使用res.add(Arrays.asList(left, right))。asList方法生成的list容量固定。threeSumTarget方法中直接对该list使用add方法报错。leetCode官网的解法代码没有问题,使用res.add(new ArrayList<>(Arrays.asList(left, right)));
你是否愿意提交 PR 修复这个 bug?
The text was updated successfully, but these errors were encountered: