Skip to content

”哈希表-两个数组交集“代码纠错 #2931

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

Open
zerd1y opened this issue Apr 25, 2025 · 1 comment
Open

”哈希表-两个数组交集“代码纠错 #2931

zerd1y opened this issue Apr 25, 2025 · 1 comment

Comments

@zerd1y
Copy link

zerd1y commented Apr 25, 2025

位置:哈希表\两个数组的交集\其他语言版本\Java\版本一:使用HashSet
代码:第26行

return res.stream().mapToInt(Integer::intValue).toArray();

应改成:

return resSet.stream().mapToInt(Integer::intValue).toArray();
@king71121
Copy link

king71121 commented Apr 25, 2025 via email

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