Skip to content

213. House Robber II#34

Open
seal-azarashi wants to merge 4 commits intomainfrom
house-robber-ii
Open

213. House Robber II#34
seal-azarashi wants to merge 4 commits intomainfrom
house-robber-ii

Conversation

@seal-azarashi
Copy link
Copy Markdown
Owner

Copy link
Copy Markdown

@fhiyo fhiyo left a comment

Choose a reason for hiding this comment

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

良いと思います!

@Yoshiki-Iwasa
Copy link
Copy Markdown

良さそうです


return Math.max(
robHelper(0, nums.length - 1, nums),
robHelper(1, nums.length, nums)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

本当は、robHelper が名前だけで何が返ってくるか分かると一番いいです。が、難しいですね。

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.

@oda
返信が大変遅くなりました。
ちょっと考えてみたのですが、maxRobbableAmountInRange はいかがでしょうか?Robbable は聞き慣れない単語ですが、Reddit にこんな投稿があったので、通じないことはないのかなと思い入れてみました。

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.

ありがとうございます!

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.

4 participants