Problem 2560 · Medium

House Robber IV

Binary search the robbery capability and check each candidate with a greedy skip-one walk along the houses.

Open the interactive visualisation