House Robber III

Problem: House Robber III

The robber has found a new neighborhood. There is only one entrance to this area, called root.

Except for the entrance, each house has exactly one parent house connect...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: