Rob the Street

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

A burglar plans to rob houses along a street, each holding some amount of money. Robbing two neighbouring houses sets off an alarm. Find the most money they can take. Explain how you'd define the subproblem and build the answer.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →