House Robber
Medium
Dynamic Programming
Houses along a street hold given amounts of money. You cannot rob two adjacent houses. Print the maximum amount you can rob.
Constraints
1 <= n <= 100 0 <= amount <= 400
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.