Quiz: House Robber Decision

Test your understanding

Check Your Understanding

At house i, you can rob it (but skip i-1) or skip it. What is maxRob(i)?

  1. A.max(nums[i] + maxRob(i-2), maxRob(i-1))
  2. B.max(nums[i], maxRob(i-1))
  3. C.nums[i] + maxRob(i-1)
  4. D.nums[i] + nums[i-2]
Start the roadmap to answer the quizzes and solve the challenges