Skip to content

Create 1011. Capacity To Ship Packages Within D Days.md#44

Open
tokuhirat wants to merge 1 commit intomainfrom
1011.-Capacity-To-Ship-Packages-Within-D-Days
Open

Create 1011. Capacity To Ship Packages Within D Days.md#44
tokuhirat wants to merge 1 commit intomainfrom
1011.-Capacity-To-Ship-Packages-Within-D-Days

Conversation

@tokuhirat
Copy link
Owner

This Problem
1011. Capacity To Ship Packages Within D Days
Next Ploblem
50. Pow(x, n)
言語: Python

Copy link

@ryosuketc ryosuketc left a comment

Choose a reason for hiding this comment

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

良いと思います。

days_required = 1
total_weight = 0
for weight in weights:
total_weight += weight
Copy link

Choose a reason for hiding this comment

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

個人的にはtotal_weight_at_a_dayと、a_dayが入っていた方がわかりやすい方が気もしますが冗長さとの加減が難しいですね

Copy link
Owner Author

Choose a reason for hiding this comment

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

ありがとうございます。そうですね、a_day ではない合計を求めてもしょうがないので冗長かと思い除いてみました。

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