catalan numbers related problem

Revision en1, by MrAutro, 2019-07-29 02:43:29

Hello I managed to understand the problem and what it needs but my idea is to use Catalan numbers to count number of binary trees but in problem it wants to count the number of BS trees of length n with height at least h and root and leafs included but I could not discard or exclude all count of trees of height less than h from Catalan numbers

Any hint please I will be thankful and grateful and thanks in advance

https://codeforces.me/problemset/problem/9/D

Tags #dp, #combinatorics

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English MrAutro 2019-07-29 21:01:58 25
en1 English MrAutro 2019-07-29 02:43:29 498 Initial revision (published)