1d8fbaaa47
// Given an Array which represents a linear arrangement of houses on a street ,The Integers represent the amount of money in every house. A Thief is planning on robbing the entire street but he can only loot houses that are not adjacent. Find the maximum amount of money that can be looted from the street. |
||
---|---|---|
.. | ||
C | ||
CPlusPlus | ||
CSharp | ||
Go | ||
Haskell | ||
Java | ||
JavaScript | ||
Python | ||
Rust |