Skip to content
RED SAGSkills
easy5 pts · first answer countsdynamic-programmingdp-basics

Robbing houses that are not neighbours

You may take money from houses in a row but never from two adjacent houses. The amounts are [2, 7, 9, 3, 1]. What is the most you can take?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions