$2H0$3H1$2H2H0 โ†” H2 adjacent!
mediumBlind 75

House Robber II

House Robber II is about turning repeated work into a reusable state instead of re-solving subproblems. Interviewers love it because it reveals your state-and-transition thinking and your edge-case discipline. The trap is picking a state that's too vague; keep it minimal and consistent.

Arrays & HashingDynamic Programming
๐Ÿ‘ฉโ€๐Ÿซ
๐Ÿ‘จโ€๐Ÿ’ผ

Meet Allison & Tim

Your AI coaches

Practice coding interviews out loud with real-time voice coaching. Your code actually runs.

Free ยท No sign up ยท Early access
1House Robber IImedium
Based onLeetCode

Get this problem sent to your inbox