Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
House Robber
Bookmark
Input
Example 1
Example 2
Example 3
Adjacent pattern
Single house
Two houses
Custom
nums
=
[1, 2, 3, 1]
houses:
0
1
1
2
2
3
3
1
dp:
0
?
1
?
2
?
3
?
algo
master
.
io
Step:
Start: Find maximum money that can be robbed from 4 houses
0 / 9
Input
Example 1
Example 2
Example 3
Adjacent pattern
Single house
Two houses
Custom
nums
=
[1, 2, 3, 1]
0 / 9
houses:
0
1
1
2
2
3
3
1
dp:
0
?
1
?
2
?
3
?
algo
master
.
io
Step:
Start: Find maximum money that can be robbed from 4 houses