Skip to content

Hashmap 929#14

Open
hiroki-horiguchi-dev wants to merge 4 commits into
mainfrom
hashmap-929
Open

Hashmap 929#14
hiroki-horiguchi-dev wants to merge 4 commits into
mainfrom
hashmap-929

Conversation

@hiroki-horiguchi-dev
Copy link
Copy Markdown
Owner

レビューお願いします!

@hiroki-horiguchi-dev hiroki-horiguchi-dev self-assigned this May 1, 2026
Comment thread hashmap/929.md
- [ここ](https://github.com/Yoshiki-Iwasa/Arai60/pull/13#discussion_r1676820615)で議論されているようなユースケースかあ、うーんと思うなどした。
- [ユースケースの想定2](https://github.com/syoshida20/leetcode/pull/20#discussion_r2079714768)
- データサイエンス目的の処理内で使われているバッチであれば落ちてほしい、なるほどそうかと思った
- [rfc3.4.1を読んでみるなどした](https://www.rfc-editor.org/rfc/rfc5322.html#section-3.4.1)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

akmhmgc/arai60#11 (comment)
もしご覧になっていなければ、このあたりも見てもいいと思います。

こういった記事もあります。
https://www.regular-expressions.info/email.html

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認できてなかったです、ありがとうございます!

Comment thread hashmap/929.md
Set<String> uniqueEmails = new HashSet<>();
for (String email : emails) {
// split at @ index.
String[] pair = email.split("@");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pairだけだとややわかりにくいかもしれません。
例えばlocalAndDomainとすると、より変数の目的がわかりやすいと思います。

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントありがとうございます、おっしゃる通り少し悩みました。
が、このくらいの変数のスコープであれば split を使っていることからも意図が明白だと思ったので pairにしてます。

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

Successfully merging this pull request may close these issues.

3 participants