Skip to content

1011. Capacity To Ship Packages Within D Days - #59

Open
skypenguins wants to merge 1 commit into
mainfrom
leetcode/arai60/problem-1011
Open

1011. Capacity To Ship Packages Within D Days#59
skypenguins wants to merge 1 commit into
mainfrom
leetcode/arai60/problem-1011

Conversation

@skypenguins

Copy link
Copy Markdown
Owner

1011. Capacity To Ship Packages Within D Days

次回予告: 127. Word Ladder

@skypenguins skypenguins self-assigned this Jul 27, 2026
Comment thread memo.md
def shipWithinDays(self, weights: List[int], days: int) -> int:
def feasible(capacity: int) -> bool:
day_count = 1
cur_load = 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

こちらのコメントをご参照ください。
h-masder/Arai60#18 (comment)

Comment thread memo.md
cur_load += w
return day_count <= days

lo, hi = max(weights), sum(weights)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

こちらのコメントをご参照ください。
#46 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants