BERNARD's blog

By BERNARD, 4 years ago, In English

Hello, I was solving the problem 461B - Appleman and Tree but misread the problem statement — thinking that I have to calculate the number of ways such that each subtree has at least one black node, but I couldn't find a solution to this. Can anyone help me with this version of the problem?

  • Vote: I like it
  • +18
  • Vote: I do not like it