Skip to content

416. Partition Equal Subset Sum - #107

Open
kitano-kazuki wants to merge 1 commit into
mainfrom
416-partition-equal-subset-sum
Open

416. Partition Equal Subset Sum#107
kitano-kazuki wants to merge 1 commit into
mainfrom
416-partition-equal-subset-sum

Conversation

@kitano-kazuki

Copy link
Copy Markdown
Collaborator

Comment thread memo.md
continue;
}
if (makables[sum - num]){
makables[sum] = true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

makables[target] == true の時点で early return しても良いと思いました。

Copy link
Copy Markdown
Collaborator 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants