Given n houses in a line with money in each, find the maximum amount a robber can steal, without stealing from two adjacent houses.
Unlock detailed company stats for this questionUpgrade
You are given an array representing the value in the houses e.g. [100, 20, 40, 70, 80]. Return 100 + 40 + 80 = 220
Interview experiences
2 sharedCommunity answers
No answers contributed by the community yet.
Related courses

Course

Course






