Skip to content

Q2-2-RansomNote#26

Merged
NobukiFukui merged 2 commits intomainfrom
grind75-Q2-2
Jun 9, 2024
Merged

Q2-2-RansomNote#26
NobukiFukui merged 2 commits intomainfrom
grind75-Q2-2

Conversation

@NobukiFukui
Copy link
Copy Markdown
Owner

  1. Ransom Note
    URL: https://leetcode.com/problems/ransom-note/description/
    を解答しました.

Copy link
Copy Markdown

@nodchip nodchip left a comment

Choose a reason for hiding this comment

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

よいと思います。

from collections import defaultdict
# make default dictionary for counting character number in magazine
char_count = defaultdict(int)
# count number of each alphabet
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

alphabetは一つ一つの文字ではなく、文字の集合の意味かと思います。
https://www.ldoceonline.com/dictionary/alphabet

a set of letters, arranged in a particular order, and used in writing

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.

ありがとうございます.
alphabet -> character
ですね

@NobukiFukui NobukiFukui merged commit c7e8fc5 into main Jun 9, 2024
@rihib rihib mentioned this pull request Sep 9, 2024
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