Skip to content

Create 283. Move Zeroes.md#24

Merged
Mike0121 merged 1 commit intomainfrom
283.-Move-Zeroes
Nov 1, 2025
Merged

Create 283. Move Zeroes.md#24
Mike0121 merged 1 commit intomainfrom
283.-Move-Zeroes

Conversation

@Mike0121
Copy link
Copy Markdown
Owner

@Mike0121 Mike0121 commented Jun 6, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

liquo-riceさん、ありがとうございます。
zero_indexにしてしまうと、客観的に(or 後から自分で見た場合)自然言語の直感と反するんですね。
今まであまり意識できていなかったので、覚えておきます。SuperHotDogCatさんにもご指摘いただいたように、non_zero_length, が良い塩梅でしょうかね。

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

zero_indexだとzeroが入っているindexなのかなと思ってしまいます。多分上のコードを見る感じだとnon_zero_lengthぐらいでしょうか

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.

ありがとうございます。なるほどです。

@rihib rihib mentioned this pull request Dec 17, 2024
@Mike0121 Mike0121 merged commit b6440cf 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.

3 participants