AlgoMaster Logo

House Robber II

nums=[2, 7, 9, 3, 1]
0 / 14
algomaster.io
Step:Start: 5 houses form a circle, so house 0 and house 4 are adjacent