Skip to content

Conversation

@docto-rin
Copy link
Owner

Comment on lines +43 to +46
without_last, with_last = (
max(without_last, with_last),
without_last + nums[i]
)
Copy link

Choose a reason for hiding this comment

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

私はこの書き方あまり好きではないですが、まあ、しかし新しい変数作るよりは見やすいかもしれませんね。

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