House Robber Problem

House Robber Problem: You are given an array representing the amount of money of each house, determine the maximum amount of money you can rob without robbing two adjacent houses.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: