Skip to content

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

Open
@zerd1y

Description

@zerd1y

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

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

应改成:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions