Problem 198 · Medium

House Robber

Use rolling dynamic programming states to choose between robbing the current house or skipping it.

Open the interactive visualisation