← All problems
Medium · Trees

House Robber III

Maximize selected tree values without selecting a parent and its child.

Full problem and submission ↗
main.js

Console

Ready