Skip to content

198. House Robber#25

Open
hiro111208 wants to merge 1 commit into
mainfrom
198-house-robber
Open

198. House Robber#25
hiro111208 wants to merge 1 commit into
mainfrom
198-house-robber

Conversation

@hiro111208
Copy link
Copy Markdown
Owner

Comment thread 198_house_robber/step3.md
Comment on lines +6 to +9
if len(nums) == 1:
return nums[0]
if len(nums) == 2:
return max(nums[0], nums[1])
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

これが良いのかはわかりませんが、まとめて書くこともできますね

if len(nums) <= 2:
    return max(nums)

@Manato110
Copy link
Copy Markdown

全体的に見やすくて良いと思いました!

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