Dynamic Programming21 sections · 916 units
Open in Course

Quiz: House Robber III

Knowledge check

Check Your Understanding

In House Robber III (tree version), why do we return TWO values from each subtree?

  1. A.To track both rob current node and not rob current node scenarios
  2. B.To handle left and right children
  3. C.For optimization purposes only
  4. D.Two values are not needed
Start the roadmap to answer the quizzes and solve the challenges