#198

House Robber

medium· 1-D DPruns: 0

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. Adjacent houses have security systems connected; if two adjacent houses are robbed on the same night, the police are alerted. 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.