Topic: Greedy Algorithm Problem / Level: beginner

Problem: You are given a list of houses, each with a certain amount of money. Maximize the money you can collect without robbing two consecutive houses.

Run the code to see the output here...