Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeetCode 198-House Robber, 139-Word Break #740

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dcode-github
Copy link

@dcode-github dcode-github commented Sep 23, 2024

House Robber-
Used Pick or Not Pick approach
If we pick a house i, we add the amount of money to our answer and move to i+2
If we don't pick house i, we move to i+1

Word Break-
Comparing all possibilities and storing the answer in an array for further reference to reduce number of computations.

@dcode-github dcode-github changed the title LeetCode 198-House Robber LeetCode 198-House Robber, 139-Word Break Oct 1, 2024
@raklaptudirm
Copy link
Member

IMO this doesn't seem to add any educational value to this repository. Would you argue otherwise?

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