Problem. Lets consider a binary tree T. Every node of this tree is colored by blue or red. Every leaf of this tree is colored by red. We say that node is good if it is a leaf or node is red and children are good. Node is maximal good if node is good and it's parent isn't. The tree contains at least one blue node.

There are no two maximal good nodes connected by red path. Prove that number of maximal good nodes with blue parent is greater than number of maximal good nodes with red.

I know two proofs of this fact. But I don't like both. I still think there is an elegant proof.

More Vsevolod Oparin's questions See All
Similar questions and discussions