#213

House Robber II

medium· 1-D DPruns: 0

You are a professional robber planning to rob houses arranged in a circle, where the first and last house are neighbors. Adjacent houses have security systems connected. Given an integer array nums representing the money in each house, return the maximum you can rob tonight without alerting the police.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.