House Robber
Problem: House Robber I
You are a professional robber planning to rob houses along a street. Each house contains some amount of money, represented by the array nums.
Adjacent houses have connec...
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:
