Skip to main content
mediumBlind 75

House Robber II

Houses in a circle - can't rob adjacent houses or first and last together Example: [2,3,2] => 3

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 Coco

Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.

1House Robber IImedium
Based onLeetCode