Tree: Depth-First Search - House Robber III (On Tree)
Given the following tree and the optimal House Robber III code, what is the maximum amount that can be robbed?
3
/ \
2 3
\ \
3 1
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions