House Robber III

Try to solve the House Robber III problem.

Statement

A thief has discovered a new neighborhood to target, where the houses can be represented as nodes in a binary tree. The money in the house is the data of the respective node. The thief can enter the neighborhood from a ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy