LeetCode
House Robber II
Click
here
for an explanation.