Skip to content
RED SAGSkills
medium10 pts · first answer countsdynamic-programmingtree-dp

House robber on a tree

Houses form a binary tree, and you cannot rob a node and its direct child. What should the recursive function return for each node?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions