AlgoMaster Logo

House Robber II

nums=[2, 7, 9, 3, 1]
0 / 46
algomaster.io
Step:5 houses in a circle, so houses 0 and 4 are neighbours.