Solve BOI Brackets using Catalan Numbers?

Revision en1, by whatthemomooofun1729, 2024-07-16 05:37:40

I am working on BOI 2012 Brackets. The official editorial uses DP to solve the problem, but I noticed that for any length $$$N$$$ strings of the form (((((....(((((, the answer is $$$C(N-2)$$$. Is there any way to generalize this observation to a solution to the problem using Catalan numbers?

Tags catalan numbers

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English whatthemomooofun1729 2024-07-16 05:37:40 416 Initial revision (published)