Skip to content

Create 347. Top K Frequent Elements.md#3

Merged
Mike0121 merged 1 commit intomainfrom
347.-Top-K-Frequent-Elements
Nov 1, 2025
Merged

Create 347. Top K Frequent Elements.md#3
Mike0121 merged 1 commit intomainfrom
347.-Top-K-Frequent-Elements

Conversation

@Mike0121
Copy link
Copy Markdown
Owner

No description provided.

@Mike0121
Copy link
Copy Markdown
Owner Author

2回目のdefaultdictの実装の利用例ですが、my_default_dict = MyDefaultDict(int)のミスです。

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

改行した方が良いかもしれません。

ordered_element_counter = sorted(
    element_counter, key=element_counter.get, reverse=True
)

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.

ありがとうございます、ご指摘のとおりですね。

@Mike0121 Mike0121 changed the title 347. Top K Frequent Elements.md Create 347. Top K Frequent Elements.md Nov 1, 2025
@Mike0121 Mike0121 merged commit e511701 into main Nov 1, 2025
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.

2 participants