you give root binary tree we install camera tree nod camera node monitor parent immediate childrenReturn minimum number camera need monitor node tree Example 1input root 00null00output 1explanation one camera monitor node place shownexample 2input root 00null0null0nullnull0Output 2explanation at camera need monitor node tree the image show valid configuration camera placement ConstraintsThe number nod tree range 1 1000nodeval 0