Dynamic Programming21 sections · 916 units
Open in CourseQuiz: House Robber III
Knowledge check
Check Your Understanding
In House Robber III (tree version), why do we return TWO values from each subtree?
- A.To track both rob current node and not rob current node scenarios
- B.To handle left and right children
- C.For optimization purposes only
- D.Two values are not needed