LeetCode
House Robber
Click
here
for an explanation.