Coding Interview Questions

Solve House Robber with two numbers and a state machine

7 min read House Robber reduces to two running numbers and a two-state machine, and that same shape solves the circular, tree, and stock-cooldown follow-ups. Read article